desktop/perl-file-next/PKGBUILD

32 lines
695 B
Bash
Raw Normal View History

2013-12-17 00:43:08 +08:00
# Maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2013-12-17 00:43:08 +08:00
_pkgname=file-next
pkgname=perl-${_pkgname}
pkgver=1.12
2012-08-11 04:17:30 +08:00
pkgrel=1
pkgdesc='File::Next - File-finding iterator'
2013-12-17 00:43:08 +08:00
arch=('x86_64')
license=('GPL' 'PerlArtistic')
2013-12-17 00:43:08 +08:00
url="https://github.com/petdance/${_pkgname}"
depends=('perl>=5.10.0')
options=(!emptydirs)
2013-12-17 00:43:08 +08:00
source=("${url}/archive/${pkgver}.tar.gz")
2013-12-17 00:49:37 +08:00
md5sums=('c26878ea3998ff85836b6156bfe7b170')
build() {
cd "$srcdir/${_pkgname}-$pkgver"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "$srcdir/${_pkgname}-$pkgver"
make install DESTDIR="$pkgdir"
find "$pkgdir" -name perllocal.pod -delete
find "$pkgdir" -name .packlist -delete
}
2013-12-17 00:49:37 +08:00