aboutsummaryrefslogtreecommitdiffstats
path: root/main/cleancss/APKBUILD
blob: 760b0cb7cf6f86b626a3aacb1d6dee5ba58db007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=cleancss
_pkgname=clean-css
pkgver=2.2.10
pkgrel=0
pkgdesc="Well-tested CSS minifier"
url="https://github.com/GoalSmashers/clean-css"
arch="noarch"
license="MIT"
depends="nodejs nodejs-commander"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="https://registry.npmjs.org/$_pkgname/-/$_pkgname-$pkgver.tgz"

_builddir="$srcdir/package"
_moduledir=usr/lib/node_modules/$_pkgname

package() {
	cd "$_builddir"

	mkdir -p "$pkgdir"/$_moduledir
	cp -pr package.json bin lib index.js "$pkgdir"/$_moduledir

	mkdir -p "$pkgdir"/usr/bin
	ln -s ../../$_moduledir/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}

md5sums="40c3efae5c3edfcc84a993663fdf8e0f  clean-css-2.2.10.tgz"
sha256sums="d9f685655ae84c0b9076da59340378887ee3632eec68fe6c17632b5dc2320dc7  clean-css-2.2.10.tgz"
sha512sums="fc61c75680b813b67a14019385321318de932271009e5f489544f8f16922451d3cc2b87467cb157bb0af466c814efc0db644abc8cc3a6062db67efc8289f103a  clean-css-2.2.10.tgz"