diff options
author | Erich Eckner <git@eckner.net> | 2017-08-08 15:01:29 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-08 15:01:29 +0200 |
commit | b59a1fe8632c3ebd9a22ea6865dcfb8beef596ba (patch) | |
tree | 84069871c46b61c0fd45886ef4fd04d731327975 | |
parent | 9860b60ac1ebb241165ed670beece36fccf1bfb6 (diff) | |
download | archlinuxewe.git.save-b59a1fe8632c3ebd9a22ea6865dcfb8beef596ba.tar.xz |
perl-css-minifier-xs neu
-rw-r--r-- | perl-css-minifier-xs/PKGBUILD | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/perl-css-minifier-xs/PKGBUILD b/perl-css-minifier-xs/PKGBUILD new file mode 100644 index 00000000..a4fa5599 --- /dev/null +++ b/perl-css-minifier-xs/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Generator : neuesPerlPaket (2187f3ca33d7c791f08a9ab8c3893497ec9caa377e13a9f4565f67f0abb693a7e3c3edb2792f2bae0865f195eb47b422ea736d98c72a803ee24cecfcdfa2829f) + +pkgname='perl-css-minifier-xs' +pkgver='0.09' +pkgrel='1' +pkgdesc='XS based CSS minifier' +arch=('x86_64' 'i686') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +makedepends=( + 'perl-extutils-cbuilder' + 'perl-module-build>=0.40' + 'perl-test-simple' +) +url='https://metacpan.org/release/CSS-Minifier-XS' +_distdir="CSS-Minifier-XS-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/${_distdir}.tar.gz") +sha512sums=('520e40fa4a6d70bd7692880f3bc5c813a8648dfe12946426dedf0874e180ccd98e703d67ed8b502a7b00489aa2404edce844d80b1eccc48f94156a0d5c36ad51') + +build() { + cd "${srcdir}/${_distdir}" + + # Setting these env variables overwrites any command-line-options we don't want... + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \ + PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \ + MODULEBUILDRC=/dev/null + + # If using Makefile.PL + if [ -r Makefile.PL ]; then + perl Makefile.PL + make + # If using Build.PL + elif [ -r Build.PL ]; then + perl Build.PL + perl Build + fi +} + +check() { + cd "${srcdir}/${_distdir}" + + # If using Makefile.PL + if [ -r Makefile.PL ]; then + make test + # If using Build.PL + elif [ -r Build.PL ]; then + perl Build test + fi +} + +package() { + cd "${srcdir}/${_distdir}" + + # If using Makefile.PL + if [ -r Makefile.PL ]; then + make install + # If using Build.PL + elif [ -r Build.PL ]; then + perl Build install + fi + + # remove perllocal.pod and .packlist + find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete +} |