summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 36 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 267e7976e45..8476f953929 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,48 @@
+# Maintainer: xRemaLx <anton.komolov@gmail.com>
# Contributor: Ben Webb <bjwebb67 at googlemail dot com>
+
pkgname=perl-dbix-contextualfetch
+_pkgname='DBIx-ContextualFetch'
pkgver=1.03
-pkgrel=1
+pkgrel=2
pkgdesc="Add contextual fetches to DBI"
arch=(any)
-url="http://search.cpan.org/~tmtm/DBIx-ContextualFetch-1.03/lib/DBIx/ContextualFetch.pm"
license=('GPL' 'PerlArtistic')
-depends=('perl>=5.10.0' 'perl-dbi')
options=(!emptydirs)
-source=(http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/DBIx-ContextualFetch-$pkgver.tar.gz)
-md5sums=('20a78432ae26b266216b7b30ff7941c3')
+depends=('perl>=5.10.0' 'perl-dbi')
+makedepends=()
+url="http://search.cpan.org/dist/DBIx-ContextualFetch/"
+source=("http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/${_pkgname}-${pkgver}.tar.gz")
+sha512sums=('e563bb56026bc8f15ced939696caaa1532aa71def6603cf3e941016a1337ca090053e30c582623413af50008ea8f4c62981cb94a4f75d423d53d015300c66885')
build() {
- cd "$srcdir/DBIx-ContextualFetch-$pkgver"
+ ( 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
- # install module in vendor directories.
- perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make install DESTDIR=${pkgdir} || return 1
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
- # remove perllocal.pod and .packlist
- find "$pkgdir" -name perllocal.pod -delete
- find "$pkgdir" -name .packlist -delete
+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: