diff options
author | Kirill Goncharov | 2019-11-06 00:29:03 +0300 |
---|---|---|
committer | Kirill Goncharov | 2019-11-07 02:13:17 +0300 |
commit | cb4c6023d31eb8530fefd31586a3baf8507b7b9f (patch) | |
tree | 36d492c364de38f96b971d6bba1068a49fcc8bb5 | |
download | aur-cb4c6023d31eb8530fefd31586a3baf8507b7b9f.tar.gz |
Version 6.3.3
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rwxr-xr-x | clean.sh | 5 |
4 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..098985810aac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = aragon-cli + pkgdesc = CLI for creating and publishing Aragon apps + pkgver = 6.3.3 + pkgrel = 1 + url = https://github.com/aragon/aragon-cli + arch = any + license = GPL + makedepends = nodejs + makedepends = npm + depends = nodejs + noextract = ${_npmname}-${pkgver}.tgz + options = !strip + source = http://registry.npmjs.org/@aragon/cli/-/@aragon/cli-6.3.3.tgz + sha256sums = 7373506bd41b8a96a6083693332d1227e2083454f87057fdab10595f7e3971e1 + +pkgname = aragon-cli + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..410a5e7255d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +*.tgz +*.tar.xz
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0395785843b5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Kirill Goncharov <kdgoncharov at gmail dot com> +pkgname=aragon-cli +_npmscope=@aragon +_npmname=cli +pkgver=6.3.3 +pkgrel=1 +pkgdesc="CLI for creating and publishing Aragon apps" +arch=('any') +options=(!strip) +url="https://github.com/aragon/aragon-cli" +license=('GPL') +depends=('nodejs') +makedepends=('nodejs' 'npm') +source=("http://registry.npmjs.org/${_npmscope}/${_npmname}/-/${_npmscope}/${_npmname}-${pkgver}.tgz") +sha256sums=('7373506bd41b8a96a6083693332d1227e2083454f87057fdab10595f7e3971e1') +noextract=('${_npmname}-${pkgver}.tgz') + +package() { + HUSKY_SKIP_INSTALL=1 npm install --global --user root --prefix "${pkgdir}/usr" "${_npmname}-${pkgver}.tgz" + + # -> https://wiki.archlinux.org/index.php/Node.js_package_guidelines + # Non-deterministic race in npm gives 777 permissions to random directories. + # See https://github.com/npm/npm/issues/9359 for details. + find "${pkgdir}"/usr -type d -exec chmod 755 {} + + # npm gives ownership of ALL FILES to build user + # https://bugs.archlinux.org/task/63396 + chown -R root:root "$pkgdir" + + # Remove unwanted git hooks. + # HUSKY_SKIP_INSTALL doesn't work for old husky package (1.1.3) that installed from ganache-core dependencies + cd .. + if [ -d .git ] + then + rm -v .git/hooks/* + fi +} diff --git a/clean.sh b/clean.sh new file mode 100755 index 000000000000..1f17c453ac38 --- /dev/null +++ b/clean.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +while read LINE + do rm -rv $LINE +done < .gitignore
\ No newline at end of file |