aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-css-minifier-xs/APKBUILD
blob: 4f4772f115ff78c347b38e2c4baa3da3fd9596a3 (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-css-minifier-xs
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=CSS-Minifier-XS
pkgver=0.12
pkgrel=0
pkgdesc="XS based CSS minifier"
url="https://metacpan.org/release/CSS-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/CSS-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="88bfd0742d06a9c181f3374b1e76c7046de81297ed4fab67db7d064b5d031845d6a9a89d71eab43ab5a45bcc1933bfc0c9b5bd6c388d9cff72e2febf33b95257  CSS-Minifier-XS-0.12.tar.gz"