Compare commits
No commits in common. "ac745a26f0e6dd55142664b294ab2502c11eb81b" and "02043fcebfd11873fc59c582c70901100bf12b35" have entirely different histories.
ac745a26f0
...
02043fcebf
3 changed files with 67 additions and 0 deletions
|
@ -2485,6 +2485,10 @@ gems = "rbtree"
|
||||||
|
|
||||||
# npm
|
# npm
|
||||||
|
|
||||||
|
[rollup]
|
||||||
|
source = "npm"
|
||||||
|
npm = "rollup"
|
||||||
|
|
||||||
[homebridge]
|
[homebridge]
|
||||||
source = "npm"
|
source = "npm"
|
||||||
npm = "homebridge"
|
npm = "homebridge"
|
||||||
|
|
17
rollup/.SRCINFO
Normal file
17
rollup/.SRCINFO
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
pkgbase = rollup
|
||||||
|
pkgdesc = Next-generation ES6 module bundler
|
||||||
|
pkgver = 2.39.1
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://rollupjs.org/
|
||||||
|
arch = any
|
||||||
|
license = MIT
|
||||||
|
license = ISC
|
||||||
|
makedepends = npm
|
||||||
|
makedepends = jq
|
||||||
|
depends = nodejs
|
||||||
|
noextract = rollup-2.39.1.tgz
|
||||||
|
source = https://registry.npmjs.org/rollup/-/rollup-2.39.1.tgz
|
||||||
|
b2sums = 373d17524836f0c1df65f7e5e7555f69835ff7a7875a5a73794639c3d99a2e54e9199cc1cf519fd90d7df4688163841eef7d8300e2468d5e2d50955085750b85
|
||||||
|
|
||||||
|
pkgname = rollup
|
||||||
|
|
46
rollup/PKGBUILD
Normal file
46
rollup/PKGBUILD
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
|
||||||
|
# Contributor: George Rawlinson <george@rawlinson.net.nz>
|
||||||
|
|
||||||
|
pkgname=rollup
|
||||||
|
pkgver=3.1.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Next-generation ES6 module bundler'
|
||||||
|
arch=(any)
|
||||||
|
url='https://rollupjs.org/'
|
||||||
|
license=('MIT')
|
||||||
|
depends=('nodejs')
|
||||||
|
makedepends=('npm' 'jq')
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
|
||||||
|
noextract=("$pkgname-$pkgver.tar.gz")
|
||||||
|
sha512sums=('184bebf8239c5e272be27ba287a9a9b7613276ae6567bdb3d11acac751f8fd0da8b93df8387ac8209f4e523dac66a521abb40bf07a7c43c06859b8cbffa71c45')
|
||||||
|
b2sums=('d5769f5313a5d37ca2f8c85888b8f6abd4bf22a37cc2d84bac773a049405ef237973399e3a8add0644ea511d499d2041aa518eafd4c1ba2c364b8c0f100e14b6')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
local NPM_FLAGS=(--no-audit --no-fund --no-update-notifier)
|
||||||
|
|
||||||
|
npm install \
|
||||||
|
--global \
|
||||||
|
--prefix "$pkgdir/usr" \
|
||||||
|
--cache "$srcdir/npm-cache" \
|
||||||
|
"${NPM_FLAGS[@]}" \
|
||||||
|
"$pkgname-$pkgver.tar.gz"
|
||||||
|
|
||||||
|
# install licenses
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
|
||||||
|
"$pkgdir/usr/lib/node_modules/rollup/LICENSE.md"
|
||||||
|
|
||||||
|
# install documentation
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" \
|
||||||
|
"$pkgdir/usr/lib/node_modules/rollup/README.md"
|
||||||
|
|
||||||
|
# remove references to ${src,pkg}dir
|
||||||
|
local tmppackage="$(mktemp)"
|
||||||
|
local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json"
|
||||||
|
jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
|
||||||
|
mv "$tmppackage" "$pkgjson"
|
||||||
|
chmod 644 "$pkgjson"
|
||||||
|
|
||||||
|
# npm gives ownership of ALL FILES to build user
|
||||||
|
# https://bugs.archlinux.org/task/63396
|
||||||
|
chown -R root:root "$pkgdir"
|
||||||
|
}
|
Loading…
Reference in a new issue