diff options
author | Anton Komolov | 2015-06-08 11:34:13 +0300 |
---|---|---|
committer | Anton Komolov | 2015-06-08 11:34:13 +0300 |
commit | 713d7b3c2e0f120fd60215523d44207558a1024d (patch) | |
tree | d9e3b42c9db18b8dd2b69c8b04b49cc7c82a29f5 | |
download | aur-713d7b3c2e0f120fd60215523d44207558a1024d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..82b996de0eb6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = perl-cache-fastmmap + pkgdesc = Uses an mmap'ed file to act as a shared memory interprocess cache + pkgver = 1.40 + pkgrel = 3 + url = http://search.cpan.org/dist/Cache-FastMmap + arch = i686 + arch = x86_64 + license = PerlArtistic + license = GPL + makedepends = perl-extutils-makemaker + depends = perl + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/R/RO/ROBM/Cache-FastMmap-1.40.tar.gz + sha512sums = 55c038cc99b4f6177f45f1610c72a57eb893bfc4598909a6f10352422b8c64376e938b1b175dd417667f7fb0732a420e23bb037ce51b16ee2db2d1a712c892d1 + +pkgname = perl-cache-fastmmap + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fe558b179d39 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: xRemaLx <anton.komolov@gmail.com> +# Contributor: Caleb Cushing <xenoterracide@gmail.com> + +pkgname='perl-cache-fastmmap' +_pkgname='Cache-FastMmap' +pkgver='1.40' +pkgrel='3' +pkgdesc="Uses an mmap'ed file to act as a shared memory interprocess cache" +arch=('i686' 'x86_64') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=('perl-extutils-makemaker') +url="http://search.cpan.org/dist/Cache-FastMmap" +source=("http://search.cpan.org/CPAN/authors/id/R/RO/ROBM/${_pkgname}-${pkgver}.tar.gz") +sha512sums=('55c038cc99b4f6177f45f1610c72a57eb893bfc4598909a6f10352422b8c64376e938b1b175dd417667f7fb0732a420e23bb037ce51b16ee2db2d1a712c892d1') + +build() { + ( 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 "${srcdir}/${_pkgname}-${pkgver}" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |