diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-02-28 16:28:32 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-02-28 16:28:32 (GMT) |
commit | f236ffc06ed9163b7bbbb525a4f2222270a692ad (patch) | |
tree | cca04fe36b70a0043e4b12462fb98c9242b17cf5 | |
parent | 68eb9a240bd2208928a7267a41cfc1fa92a43b33 (diff) | |
download | linhes_pkgbuild-f236ffc06ed9163b7bbbb525a4f2222270a692ad.zip linhes_pkgbuild-f236ffc06ed9163b7bbbb525a4f2222270a692ad.tar.gz linhes_pkgbuild-f236ffc06ed9163b7bbbb525a4f2222270a692ad.tar.bz2 |
perl-sgmls: udpate to 1.1
-rw-r--r-- | abs/core/perl_modules/perl-sgmls/PKGBUILD | 52 | ||||
-rw-r--r-- | abs/extra/perl-sgmls/PKGBUILD | 34 | ||||
-rw-r--r-- | abs/extra/perl-sgmls/__changelog | 1 |
3 files changed, 52 insertions, 35 deletions
diff --git a/abs/core/perl_modules/perl-sgmls/PKGBUILD b/abs/core/perl_modules/perl-sgmls/PKGBUILD new file mode 100644 index 0000000..8da5a37 --- /dev/null +++ b/abs/core/perl_modules/perl-sgmls/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> + +_cpanname=SGMLSpm +pkgname=perl-sgmls +epoch=1 +pkgver=1.1 +pkgrel=4 +pkgdesc="A Post-Processor for SGMLS and NSGMLS" +arch=('any') +url="http://search.cpan.org/dist/SGMLSpm" +license=('GPL' 'PerlArtistic') +depends=('perl') +options=('!emptydirs' 'docs') +source=(http://search.cpan.org/CPAN/authors/id/R/RA/RAAB/SGMLSpm-$pkgver.tar.gz) +md5sums=('746c74ae969992cedb1a2879b4168090') + +prepare() { + cd "$srcdir/$_cpanname-$pkgver" + find . -type f -exec chmod 0644 {} \; +} + +prepareEnvironment() { + cd "$srcdir/$_cpanname-$pkgver" + 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 +} + +build() { + prepareEnvironment + /usr/bin/perl Makefile.PL + make +} + +check() { + prepareEnvironment + make test +} + +package() { + prepareEnvironment + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + + # FS#51874 + ln -sv /usr/bin/vendor_perl/sgmlspl.pl $pkgdir/usr/bin/sgmlspl +} diff --git a/abs/extra/perl-sgmls/PKGBUILD b/abs/extra/perl-sgmls/PKGBUILD deleted file mode 100644 index 3fd816b..0000000 --- a/abs/extra/perl-sgmls/PKGBUILD +++ /dev/null @@ -1,34 +0,0 @@ -# $Id: PKGBUILD 22119 2010-07-19 15:47:35Z spupykin $ -# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> -# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> - -pkgname=perl-sgmls -pkgver=1.03ii -pkgrel=4 -pkgdesc="A Post-Processor for SGMLS and NSGMLS" -arch=('any') -url="http://search.cpan.org/dist/SGMLSpm" -license=('GPL' 'PerlArtistic') -depends=('perl') -options=('!emptydirs' 'docs') -source=(http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-$pkgver.tar.gz) -md5sums=('5bcb197fd42e67d51c739b1414d514a7') - -build() { - cd $srcdir/SGMLSpm - - mkdir -p $pkgdir/usr/bin $pkgdir/usr/lib/perl5/vendor_perl $pkgdir/usr/share/doc/perl-sgmls - - patch Makefile <<EOF -84a85 -> find \${HTMLDIR} -type l -exec rm -f {} \; -EOF - - make install install_html \ - BINDIR=$pkgdir/usr/bin \ - PERL5DIR=$pkgdir/usr/lib/perl5/vendor_perl \ - HTMLDIR=$pkgdir/usr/share/doc/perl-sgmls || return 1 - - find $pkgdir -name '.packlist' -delete - find $pkgdir -name '*.pod' -delete -} diff --git a/abs/extra/perl-sgmls/__changelog b/abs/extra/perl-sgmls/__changelog deleted file mode 100644 index 632f625..0000000 --- a/abs/extra/perl-sgmls/__changelog +++ /dev/null @@ -1 +0,0 @@ -7/17/11 - chw - Removed "force" from options in PKGBUILD |