updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / perl-gd-barcode / PKGBUILD
blob727a914e7bb316eb27aa749513a1b464941b3651
1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-gd-barcode
4 pkgver=1.15
5 pkgrel=1
6 pkgdesc="Create barcode image with GD"
7 arch=('i686' 'x86_64')
8 url="http://search.cpan.org/dist/GD-Barcode/"
9 license=('unknown')
10 source=('http://search.cpan.org/CPAN/authors/id/K/KW/KWITKNR/GD-Barcode-1.15.tar.gz')
11 md5sums=('53788170efb00b671ffb6ced5b5b897b')
12 sha256sums=('8c22b449079dce65946ec72acf6d3db78753045e7738c5101bc26932c9704967')
13 depends=()
14 provides=('perl-gd-barcode-code39=1.1' 'perl-gd-barcode-coop2of5=0.01' 'perl-gd-barcode-ean13=1.1' 'perl-gd-barcode-ean8=1.1' 'perl-gd-barcode-iata2of5=0.01' 'perl-gd-barcode-industrial2of5=0.01' 'perl-gd-barcode-itf=0.01' 'perl-gd-barcode-matrix2of5=0.01' 'perl-gd-barcode-nw7=1.1' 'perl-gd-barcode-qrcode=0.01' 'perl-gd-barcode-upca=1.1' 'perl-gd-barcode-upce=1.1')
15 options=(!emptydirs)
17 build() {
18   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
19   if [ ! -z "$_dir" ]; then
20     cd $(dirname "$_dir")
21     PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
22     make  || return 1
23     make install DESTDIR="${pkgdir}" || return 1
25   else
26   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
27   if [ ! -z "$_dir" ]; then
28     cd $(dirname "$_dir")
29     PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
30     ./Build  || return 1
31     ./Build install destdir=${pkgdir} || return 1
33   else
34     echo "error: failed to detect build method for $pkgname"
35     echo "you may be able to fix this by editing the PKGBUILD"
36     return 1
37   fi fi
39   # remove perllocal.pod and .packlist
40   find ${pkgdir} -name perllocal.pod -delete
41   find ${pkgdir} -name .packlist -delete
44 # vim:set ts=2 sw=2 et: