1 # Contributor: sev <alpine@sev.monster>
2 # Maintainer: sev <alpine@sev.monster>
7 pkgdesc="A modern web frontend making aria2 easier to use."
8 url="https://github.com/mayswind/AriaNg"
11 makedepends="libstdc++ coreutils curl"
12 source="https://github.com/mayswind/$pkgname_/archive/$pkgver/$pkgname_-$pkgver.tar.gz"
13 builddir="$srcdir/$pkgname_-$pkgver"
18 export NVM_DIR="$builddir/.nvm"
20 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | sh
22 export NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release
23 nvm_get_arch() { nvm_echo x64-musl; }
26 npx browserslist@latest --update-db
27 ./node_modules/gulp/bin/gulp.js clean build
31 mkdir -p "$pkgdir/usr/share/webapps"
32 cp -a dist "$pkgdir/usr/share/webapps/$pkgname"
35 15d9902a1d894cad3ef0fc7de40701f1a419d563b1a81a9f010a06bec93d3d01b2320d0a0c5e4ed10c8951febf1ed42af361560c3d12a051fd14ed7716bf29a3 AriaNg-1.2.4.tar.gz