aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-javascript-minifier-xs/APKBUILD
blob: 2b753082017b72a46a4c4dbb4b6e15887a966b02 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                     
                                                              
                               
           
        
                                      
                                                          
          


                                               
                          

                                                                                                 
 



                                                                     

 


                                                                


           
                                      


                                                                           
                                                                                                                                                                                 
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-javascript-minifier-xs
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=JavaScript-Minifier-XS
pkgver=0.14
pkgrel=0
pkgdesc="XS based JavaScript minifier"
url="https://metacpan.org/release/JavaScript-Minifier-XS/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/JavaScript-Minifier-XS-$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="9124ced15a6574b32bfb4357416e04076b688bacb9b88da9b787dfbe1209836a52f5f2ae8554c25f2af100078f089e0b1a5a281c0459c5b048e2c92c33100c66  JavaScript-Minifier-XS-0.14.tar.gz"