added perl-tie-hash-dbd package
authorHarvie <tomas@mudrunka.cz>
Tue, 3 May 2011 14:58:53 +0000 (16:58 +0200)
committerHarvie <tomas@mudrunka.cz>
Tue, 3 May 2011 14:58:53 +0000 (16:58 +0200)
perl-tie-hash-dbd/PKGBUILD [new file with mode: 0644]

diff --git a/perl-tie-hash-dbd/PKGBUILD b/perl-tie-hash-dbd/PKGBUILD
new file mode 100644 (file)
index 0000000..111be0e
--- /dev/null
@@ -0,0 +1,49 @@
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer: Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=perl-tie-hash-dbd
+pkgver=0.70.0
+pkgrel=1
+pkgdesc="Tie plain hashes to DBI interface"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/Tie-Hash-DBD/"
+license=('perl')
+source=('http://search.cpan.org/CPAN/authors/id/H/HM/HMBRAND/Tie-Hash-DBD-0.07.tgz')
+md5sums=('ba19e6ca95061eec7c9629f985f99bd3')
+sha256sums=('c22564908cebbf11cb5a26949977e44ed69f490da7f91b9430b15b80b8acca3f')
+#depends=('perl-carp' 'perl-dbi>=1.613.0' 'perl-storable' 'perl>=5.0.8')
+depends=('perl-dbi>=1.613.0' 'perl>=5.0.8')
+optdepends=('perl' 'perl-dbd-sqlite' 'perl-test-more')
+provides=('perl-tie-array-dbd=0.70.0')
+options=(!emptydirs)
+
+build() {
+  _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
+  if [ ! -z "$_dir" ]; then
+    cd $(dirname "$_dir")
+    PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+    make  || return 1
+    make install DESTDIR="${pkgdir}" || return 1
+
+  else
+  _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
+  if [ ! -z "$_dir" ]; then
+    cd $(dirname "$_dir")
+    PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
+    ./Build  || return 1
+    ./Build install destdir=${pkgdir} || return 1
+
+  else
+    echo "error: failed to detect build method for $pkgname"
+    echo "you may be able to fix this by editing the PKGBUILD"
+    return 1
+  fi fi
+
+  # remove perllocal.pod and .packlist
+  find ${pkgdir} -name perllocal.pod -delete
+  find ${pkgdir} -name .packlist -delete
+}
+
+# vim:set ts=2 sw=2 et:
+
This page took 0.342671 seconds and 4 git commands to generate.