summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Guillaumin2018-05-19 18:33:12 -0700
committerNicolas Guillaumin2018-05-19 18:33:12 -0700
commit99252f6804c1b4a3ea4d973790a6b8a60fe810cc (patch)
tree9dea70493dae267e5cc9a45ee590cbbe764dba8a /PKGBUILD
downloadaur-perl-redisdb.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1e8db1f688
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer : Nicolas Guillaumin <nicolas plus archlinux at guillaumin dot me>
+pkgname=perl-redisdb
+pkgver=2.54
+pkgrel=1
+pkgdesc='Perl extension to access redis database (RedisDB)'
+_dist=RedisDB
+arch=('any')
+url="https://metacpan.org/release/$_dist"
+license=('GPL' 'PerlArtistic')
+depends=(perl perl-redisdb-parser perl-try-tiny perl-uri-redis)
+makedepends=(perl-test-failwarnings perl-test-tcp)
+options=('!emptydirs' purge)
+source=("http://search.cpan.org/CPAN/authors/id/Z/ZW/ZWON/$_dist-$pkgver.tar.gz")
+md5sums=(8e3cb9078f04a8f23ff4cc7e69adf56c)
+
+build() {
+ cd "$srcdir/$_dist-$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/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ make test
+}
+
+package() {
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+}