| 
									
										
										
										
											2022-12-28 18:13:22 +01:00
										 |  |  | # Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _pkgname=eask | 
					
						
							|  |  |  | _orgname=emacs-eask | 
					
						
							|  |  |  | _nodepkgname=cli | 
					
						
							|  |  |  | pkgname="nodejs-${_pkgname}" | 
					
						
							| 
									
										
										
										
											2023-01-05 14:13:40 +01:00
										 |  |  | pkgver=0.7.7 | 
					
						
							| 
									
										
										
										
											2022-12-28 18:13:22 +01:00
										 |  |  | pkgrel=1 | 
					
						
							|  |  |  | pkgdesc="Command-line tool for building and testing Emacs Lisp packages" | 
					
						
							|  |  |  | url="https://github.com/${_orgname}/${_pkgname}" | 
					
						
							|  |  |  | license=("GPL3") | 
					
						
							|  |  |  | arch=("any") | 
					
						
							|  |  |  | depends=("nodejs") | 
					
						
							|  |  |  | makedepends=("npm") | 
					
						
							| 
									
										
										
										
											2023-01-05 14:13:40 +01:00
										 |  |  | source=("https://registry.npmjs.org/@${_orgname}/${_nodepkgname}/-/${_nodepkgname}-${pkgver}.tgz") | 
					
						
							|  |  |  | sha256sums=('6664b69d22e34c7647e69b3b379a808e8695ed3817ffce1c70df02b269a530b5') | 
					
						
							| 
									
										
										
										
											2022-12-28 18:13:22 +01:00
										 |  |  | noextract=("$_pkgname-$pkgver.tgz") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | prepare() { | 
					
						
							|  |  |  |   tar xf "$_nodepkgname-$pkgver.tgz" package/COPYING | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package() { | 
					
						
							|  |  |  |   npm i --location=global --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$_nodepkgname-$pkgver.tgz" | 
					
						
							|  |  |  |   install -Dm644 package/COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING" | 
					
						
							|  |  |  |   # install -Dm644 <(nps eask) "$pkgdir/usr/share/bash-completion/completions/$_pkgname" | 
					
						
							|  |  |  | } |