[arch-commits] Commit in perl-sgmls/repos (2 files)

Florian Pritz bluewind at archlinux.org
Wed Aug 1 12:29:08 UTC 2018


    Date: Wednesday, August 1, 2018 @ 12:29:08
  Author: bluewind
Revision: 366817

archrelease: copy trunk to community-staging-any

Added:
  perl-sgmls/repos/community-staging-any/
  perl-sgmls/repos/community-staging-any/PKGBUILD
    (from rev 366816, perl-sgmls/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: perl-sgmls/repos/community-staging-any/PKGBUILD (from rev 366816, perl-sgmls/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-08-01 12:29:08 UTC (rev 366817)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+_cpanname=SGMLSpm
+pkgname=perl-sgmls
+epoch=1
+pkgver=1.1
+pkgrel=5
+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
+}



More information about the arch-commits mailing list