2012-05-16 03:45:57 +00:00
|
|
|
# Maintainer: Jason St. John <jstjohn .. purdue . edu>
|
|
|
|
|
2013-06-04 12:52:32 +00:00
|
|
|
_perlmod=Config-General
|
|
|
|
_modnamespace=Config
|
2012-05-16 03:45:57 +00:00
|
|
|
pkgname=perl-config-general
|
2013-08-13 01:17:55 +00:00
|
|
|
pkgver=2.52
|
2014-01-12 18:45:46 +00:00
|
|
|
pkgrel=2
|
2012-05-16 03:45:57 +00:00
|
|
|
pkgdesc="Config::General - Generic Config Module"
|
2013-06-04 12:52:32 +00:00
|
|
|
arch=('any')
|
2014-01-12 18:45:46 +00:00
|
|
|
url="http://search.cpan.org/dist/${_perlmod}"
|
2012-09-17 23:40:54 +00:00
|
|
|
license=('GPL' 'PerlArtistic')
|
2012-05-16 03:45:57 +00:00
|
|
|
options=('!emptydirs')
|
2014-01-12 18:45:46 +00:00
|
|
|
source=("http://cpan.org/modules/by-module/${_modnamespace}/${_perlmod}-${pkgver}.tar.gz")
|
2013-08-13 01:17:55 +00:00
|
|
|
sha512sums=('9a4d6fd823c58c5aba78528997b17b7db8f303dd58d1763f797cf917ebd5f3257b17afc85dcec6f5607b7fdb874dfa60b540e98366a6bb3cf6000175fb32a7c5')
|
2012-05-16 03:45:57 +00:00
|
|
|
|
|
|
|
build() {
|
2014-01-12 18:45:46 +00:00
|
|
|
cd "${srcdir}/${_perlmod}-${pkgver}"
|
2013-06-04 12:52:32 +00:00
|
|
|
|
|
|
|
# Install module in vendor directories.
|
|
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make
|
2012-05-16 03:45:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2014-01-12 18:45:46 +00:00
|
|
|
cd "${srcdir}/${_perlmod}-${pkgver}"
|
2013-08-13 01:17:55 +00:00
|
|
|
make test
|
2012-05-16 03:45:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-01-12 18:45:46 +00:00
|
|
|
cd "${srcdir}/${_perlmod}-${pkgver}"
|
|
|
|
make install DESTDIR="${pkgdir}/"
|
2012-05-16 03:45:57 +00:00
|
|
|
}
|