pkgname=perl-text-bibtex _cpanname=Text-BibTeX pkgver=0.38 pkgrel=1 pkgdesc="Parse BibTeX files" arch=('i686' 'x86_64') url="http://search.cpan.org/~Text/${_cpanname}" license=('GPL' 'PerlArtistic') depends=('perl') options=('!emptydirs') source=(http://www.cpan.org/authors/id/A/AM/AMBS/Text/${_cpanname}-${pkgver}.tar.gz) md5sums=('e1c9f45e17af5ff2b5e5e0e0d574a49f') build() { if [ "${CARCH}" = "x86_64" ]; then export CFLAGS="${CFLAGS} -fPIC" fi cd $srcdir/${_cpanname}-${pkgver} PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 make install DESTDIR=$pkgdir || return 1 find $pkgdir -name '.packlist' -delete find $pkgdir -name '*.pod' -delete }