diff options
author | Jakob Nixdorf | 2017-07-24 21:17:02 +0200 |
---|---|---|
committer | Jakob Nixdorf | 2017-07-24 21:17:02 +0200 |
commit | d3b914282f2c34a261638d1d0a69f7c2749414f8 (patch) | |
tree | 11e8c33dccebe7f1a965fd5635aded000ffc5cfe | |
download | aur-d3b914282f2c34a261638d1d0a69f7c2749414f8.tar.gz |
Initial PKGBUILD for version 0.09
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bced27c5dc22 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = perl-struct-dumb + pkgdesc = Make simple lightweight record-like structures + pkgver = 0.09 + pkgrel = 1 + url = http://search.cpan.org/dist/Struct-Dumb + arch = any + license = GPL + license = PerlArtistic + makedepends = perl-test-fatal + depends = perl>=5.10.0 + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Struct-Dumb-0.09.tar.gz + md5sums = bb9ea100dc6f9ecd1c345381930dda08 + +pkgname = perl-struct-dumb + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d7722ee2c1ea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Jakob Nixdorf <flocke@shadowice.org> + +pkgname=perl-struct-dumb +pkgver=0.09 +pkgrel=1 +pkgdesc="Make simple lightweight record-like structures" +arch=('any') +url="http://search.cpan.org/dist/Struct-Dumb" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0') +makedepends=('perl-test-fatal') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Struct-Dumb-${pkgver}.tar.gz") +md5sums=('bb9ea100dc6f9ecd1c345381930dda08') + +build() { + cd "${srcdir}/Struct-Dumb-${pkgver}" + + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + + /usr/bin/perl Makefile.PL + make +} + +check() { + cd "${srcdir}/Struct-Dumb-${pkgver}" + + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + + make test +} + +package() { + cd "${srcdir}/Struct-Dumb-${pkgver}" + + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + + make install INSTALLDIRS=vendor DESTDIR="${pkgdir}" + + find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete +} + +# vim:set ts=2 sw=2 et: |