diff options
author | Martin Fracker, Jr | 2018-11-05 17:53:53 -0600 |
---|---|---|
committer | Martin Fracker, Jr | 2018-11-05 17:53:53 -0600 |
commit | a39e6e586d6a30391d1d892a015cef7a79ed80ca (patch) | |
tree | b1bb85433278e3ec42d54fbe8c8f5d6901f7e9f9 | |
parent | dabaef755b710d0b2038a66353c6ff7fa6dff610 (diff) | |
download | aur-a39e6e586d6a30391d1d892a015cef7a79ed80ca.tar.gz |
Refactor reusable package name
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ # Maintainer: Martin Fracker, Jr. <martin.frackerjr@gmail.com> pkgname=nodejs-create-nuxt-app +_pkgname=create-nuxt-app pkgver=2.1.1 pkgrel=2 pkgdesc="Create a Nuxt.js project in seconds" @@ -8,16 +9,16 @@ arch=("any") url="https://github.com/nuxt-community/create-nuxt-app" license=("MIT") depends=() -provides=("create-nuxt-app") +provides=("$_pkgname") makedepends=("npm") -source=("https://registry.npmjs.org/create-nuxt-app/-/create-nuxt-app-$pkgver.tgz" +source=("https://registry.npmjs.org/create-nuxt-app/-/$_pkgname-$pkgver.tgz" "LICENSE::https://raw.githubusercontent.com/nuxt-community/create-nuxt-app/master/LICENSE" ) sha256sums=('64206d2117ee6a23e8459e919a0be1d70733fc6a26954f988f0022ea4359b30b' '62203251d328f41a3c67da864559761824bff3940fa3a46af3530e81d112fc8d') package() { - npm install -g --user root --cache "$srcdir/npm-cache" --prefix "$pkgdir"/usr create-nuxt-app-$pkgver.tgz + npm install -g --user root --cache "$srcdir/npm-cache" --prefix "$pkgdir"/usr $_pkgname-$pkgver.tgz find "${pkgdir}"/usr -type d -exec chmod 755 {} + } |