Commit 62c5f0d6 authored by Leo's avatar Leo
Browse files

main/perl-css-minifier-xs: upgrade to 0.10

parent dc24f5b4
Pipeline #66354 failed with stages
in 44 seconds
# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# 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.09
pkgrel=7
pkgver=0.10
pkgrel=0
pkgdesc="XS based CSS minifier"
url="https://metacpan.org/release/CSS-Minifier-XS/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
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/$_pkgreal-$pkgver.tar.gz"
source="https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/CSS-Minifier-XS-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
perl Build.PL installdirs=vendor || return 1
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
build() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
cd "$_builddir"
./Build install destdir="$pkgdir" || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="520e40fa4a6d70bd7692880f3bc5c813a8648dfe12946426dedf0874e180ccd98e703d67ed8b502a7b00489aa2404edce844d80b1eccc48f94156a0d5c36ad51 CSS-Minifier-XS-0.09.tar.gz"
sha512sums="f32fd8e362353b04bb970ca456933403b0dfaca42002db69411a61ba3fd1320eb80b7a4133e696354cde7ea6d6c23a0d203108eceb2b09fba9f4809a225213f1 CSS-Minifier-XS-0.10.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment