desktop/perl-file-sharedir/PKGBUILD

39 lines
984 B
Bash
Raw Normal View History

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
2011-04-03 18:41:32 +08:00
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=perl-file-sharedir
_pkgname=File-ShareDir
2011-04-03 18:41:32 +08:00
pkgver=1.03
pkgrel=1
pkgdesc="Perl module to locate per-dist and per-module shared files."
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl' 'perl-class-inspector')
url='http://search.cpan.org/~adamk/File-ShareDir/'
source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_pkgname-$pkgver.tar.gz")
2011-04-03 18:41:32 +08:00
md5sums=('333a0903db23b9097adfbeb37b99d561')
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/"
# Remove perllocal.pod and .packlist:
find "$pkgdir" -name perllocal.pod -delete
find "$pkgdir" -name .packlist -delete
}