aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-javascript-minifier-xs
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-03-07 10:43:54 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-03-07 10:45:20 +0000
commit90f6352788972483c522951e5ed88dfbd879cb9e (patch)
treef098c828fbded2a381303f2f4c186ae253902089 /main/perl-javascript-minifier-xs
parentf26fa41a714a5a9fd93b935d8350c6cdbd35b3cc (diff)
downloadaports-90f6352788972483c522951e5ed88dfbd879cb9e.tar.bz2
aports-90f6352788972483c522951e5ed88dfbd879cb9e.tar.xz
main/perl-javascript-minifier-xs: new aport
Diffstat (limited to 'main/perl-javascript-minifier-xs')
-rw-r--r--main/perl-javascript-minifier-xs/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-javascript-minifier-xs/APKBUILD b/main/perl-javascript-minifier-xs/APKBUILD
new file mode 100644
index 0000000000..393c297d4d
--- /dev/null
+++ b/main/perl-javascript-minifier-xs/APKBUILD
@@ -0,0 +1,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=0
+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"
+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"