[arch-commits] Commit in perl-unix-syslog/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon May 24 11:24:15 UTC 2021
Date: Monday, May 24, 2021 @ 11:24:15
Author: foutrelis
Revision: 944393
archrelease: copy trunk to community-staging-x86_64
Added:
perl-unix-syslog/repos/community-staging-x86_64/
perl-unix-syslog/repos/community-staging-x86_64/PKGBUILD
(from rev 944391, perl-unix-syslog/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: perl-unix-syslog/repos/community-staging-x86_64/PKGBUILD (from rev 944391, perl-unix-syslog/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-05-24 11:24:15 UTC (rev 944393)
@@ -0,0 +1,40 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+pkgname=perl-unix-syslog
+pkgver=1.1
+pkgrel=15
+pkgdesc="Interface to syslog functions in a C-library"
+arch=('x86_64')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+url='https://search.cpan.org/dist/Unix-Syslog'
+source=("https://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-$pkgver.tar.gz")
+md5sums=('73d78e309fe9508ffc9a54d84d79aac9')
+
+build() {
+ PERL=/usr/bin/perl
+ cd "${srcdir}/Unix-Syslog-1.1"
+ export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
+ MODULEBUILDRC=/dev/null
+
+ cd "$DIST_DIR"
+ $PERL Makefile.PL
+ make
+}
+
+check() {
+ cd "${srcdir}/Unix-Syslog-1.1"
+ export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ make test
+}
+
+package() {
+ cd "${srcdir}/Unix-Syslog-1.1"
+ make install
+
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
More information about the arch-commits
mailing list