summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2017-06-09 16:17:03 -0600
committerBrian Bidulock2017-06-09 16:17:03 -0600
commit30a642534f2031035725f55802b2e81f3f332b8a (patch)
tree0c093a8d67da7553393c10a1218eb61793466294
parent81f3d7b93b0c53d9d4c7699714d72a72bc296bcf (diff)
downloadaur-30a642534f2031035725f55802b2e81f3f332b8a.tar.gz
hide template from mksrcinfo
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 588987d8c01..d272f26f23d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = perl-geoip
pkgdesc = GeoIP Perl API
pkgver = 1.50
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/maxmind/geoip-api-perl
arch = i686
arch = x86_64
@@ -12,7 +12,4 @@ pkgbase = perl-geoip
md5sums = 32a7c8775d7b7748f9b940c4fa0bc233
pkgname = perl-geoip
- depends = geoip
- depends = perl>=
- depends = perl<
diff --git a/PKGBUILD b/PKGBUILD
index d87842991a0..1b7adfd07ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=perl-geoip
_gitname=geoip-api-perl
pkgver=1.50
-pkgrel=1
+pkgrel=2
pkgdesc="GeoIP Perl API"
arch=(i686 x86_64)
license=(GPL)
@@ -19,13 +19,7 @@ build() {
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
-package() {
- cd ${_gitname}-${pkgver}
- make install DESTDIR=${pkgdir}
-
- # remove perllocal.pod and .packlist
- find $pkgdir -name perllocal.pod -delete
- find $pkgdir -name .packlist -delete
+_perl_depends() {
# template start; name=perl-binary-module-dependency; version=1;
if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
@@ -34,3 +28,12 @@ if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
fi
# template end;
}
+package() {
+ cd ${_gitname}-${pkgver}
+ make install DESTDIR=${pkgdir}
+
+ # remove perllocal.pod and .packlist
+ find $pkgdir -name perllocal.pod -delete
+ find $pkgdir -name .packlist -delete
+ _perl_depends
+}