diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a28e07642097 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = yalc + pkgdesc = Better workflow than npm/yarn link for package authors. + pkgver = 1.0.0.pre.53 + pkgrel = 1 + url = https://github.com/wclr/yalc + arch = any + license = MIT + makedepends = npm + depends = nodejs + noextract = yalc-1.0.0-pre.53.tgz + source = https://registry.npmjs.org/yalc/-/yalc-1.0.0-pre.53.tgz + sha256sums = 78a97cd2051cae8ff9bc1fa76210b66b38e12aaeed46784ea052364558aa58f2 + +pkgname = yalc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8ccdf747b649 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Sam A. Horvath-Hunt <hello@samhh.com> + +_pkgver=1.0.0-pre.53 +pkgname=yalc +pkgver=1.0.0.pre.53 +pkgrel=1 +pkgdesc="Better workflow than npm/yarn link for package authors." +url="https://github.com/wclr/yalc" +license=("MIT") +arch=("any") +depends=("nodejs") +makedepends=("npm") +source=("https://registry.npmjs.org/${pkgname}/-/${pkgname}-${_pkgver}.tgz") +noextract=("${pkgname}-${_pkgver}.tgz") +sha256sums=('78a97cd2051cae8ff9bc1fa76210b66b38e12aaeed46784ea052364558aa58f2') + +prepare() { + tar xf "${pkgname}-${_pkgver}.tgz" package/LICENCE.md +} + +package() { + npm i -g --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$pkgname-$_pkgver.tgz" + install -Dm644 package/LICENCE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |