aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-javascript-minifier/APKBUILD
blob: 5c20b8f72c62961af0372b3da9597c1996533fb2 (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
33
34
35
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-javascript-minifier
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=JavaScript-Minifier
pkgver=1.16
pkgrel=0
pkgdesc="Perl extension for minifying JavaScript code"
url="https://metacpan.org/release/JavaScript-Minifier/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/Z/ZO/ZOFFIX/JavaScript-Minifier-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}


sha512sums="08341a6d329dd4f2bb8529c66135d9f25aff06c5f36f605d80a540aee21a6624aeb43ca45cd33378b88285af8d1771f894ab6083c7ba323cfdfe4fbbd10fe729  JavaScript-Minifier-1.16.tar.gz"