1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/nodejs-less/APKBUILD
2021-06-22 15:43:10 +02:00

29 lines
869 B
Text

# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=nodejs-less
pkgver=4.1.1
pkgrel=0
pkgdesc="A standalone compiler for the LESS CSS language"
url="https://lesscss.org"
arch="noarch !mips64 !riscv64" # blocked by nodejs
license="AGPL-3.0-or-later"
depends="nodejs"
makedepends="npm"
source="https://registry.npmjs.org/less/-/less-$pkgver.tgz"
options="!check"
builddir="$srcdir/package"
unpack() {
# skipping unpacking, installing archive directly
verify
}
package() {
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/less-$pkgver.tgz
find "$pkgdir/usr/lib/node_modules/root" -delete
chown -R root "$pkgdir"
}
sha512sums="
c34f68f2d6453d3841b1c9797741a0a7745caca228b81a10b1c9ce320147de7e55de437f09718735f0a444fb71264ea72abc835da57d6872cae79457b87e2c03 less-4.1.1.tgz
"