aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-javascript-minifier-xs/APKBUILD
blob: cdf87f42ff041684013add59f0ad1744512989b7 (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
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-javascript-minifier-xs
_pkgreal=JavaScript-Minifier-XS
pkgver=0.11
pkgrel=4
pkgdesc="XS based JavaScript minifier"
url="http://search.cpan.org/dist/JavaScript-Minifier-XS/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GT/GTERMARS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="bd8544287ecd1b651367295485f4a5b0  JavaScript-Minifier-XS-0.11.tar.gz"
sha256sums="151212ca4bd50b2f5e1de6d01e3cb08460407bd75f27dfc8162f2f7927839eee  JavaScript-Minifier-XS-0.11.tar.gz"
sha512sums="736294c898d7806eae509b0d0c14cfcbb783ac335fe6c08bed9c00a52643b3e6d0ade124735d7de8d2203bf404448889e0e84b3097e316d0ef444f1603cbbdef  JavaScript-Minifier-XS-0.11.tar.gz"