PKGBUILDs/community/perl-text-query/PKGBUILD

26 lines
801 B
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=perl-text-query
_cpanname=Text-Query
pkgver=0.07
pkgrel=1
pkgdesc="Query processing framework"
arch=('any')
url="http://search.cpan.org/~EBOHLMAN/${_cpanname}"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/E/EB/EBOHLMAN/${_cpanname}-${pkgver}.tar.gz)
md5sums=('1452eadb3b2e2da948431655733582a5')
build() {
cd $srcdir/${_cpanname}-${pkgver}
sed -i '/^auto_install/d' Makefile.PL
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
}