[arch-commits] Commit in perl-berkeleydb/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Aug 1 12:18:17 UTC 2018
Date: Wednesday, August 1, 2018 @ 12:18:16
Author: foutrelis
Revision: 366735
archrelease: copy trunk to community-staging-x86_64
Added:
perl-berkeleydb/repos/community-staging-x86_64/
perl-berkeleydb/repos/community-staging-x86_64/PKGBUILD
(from rev 366734, perl-berkeleydb/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: perl-berkeleydb/repos/community-staging-x86_64/PKGBUILD (from rev 366734, perl-berkeleydb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-01 12:18:16 UTC (rev 366735)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Charles Mauch <cmauch at gmail.com>
+# Contributor: Francois Charette <firmicus at gmx.net>
+
+pkgname=perl-berkeleydb
+pkgver=0.55
+pkgrel=6
+pkgdesc="Interface to Berkeley DB version 2, 3 or 4"
+arch=('x86_64')
+url="http://search.cpan.org/dist/BerkeleyDB/"
+license=('GPL' 'PerlArtistic')
+depends=('perl' 'db')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/BerkeleyDB-$pkgver.tar.gz)
+md5sums=('7aa018597792a2f56e80f31d3fe76fa2')
+
+build() {
+ cd "$srcdir"/BerkeleyDB-$pkgver
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ _dbver1=`pacman -Q db | cut -d\ -f2 | cut -d- -f1 | cut -f1 -d.`
+ _dbver2=`pacman -Q db | cut -d\ -f2 | cut -d- -f1 | cut -f2 -d.`
+ depends=('perl' "db>=${_dbver1}.${_dbver2}" "db<${_dbver1}.$(expr $_dbver2 + 1)")
+
+ cd "$srcdir"/BerkeleyDB-$pkgver
+ make pure_install doc_install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+}
More information about the arch-commits
mailing list