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
|
2014-06-05 01:49:13 +00:00
|
|
|
pkgver=2.56
|
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")
|
2014-06-05 01:49:13 +00:00
|
|
|
sha512sums=('0439d690e58fb30cafd18e3c51fb1c6226cb20017fcd260959ad0210006d0e98a32a939d314b384e5c62871c0a59400a678099e3d703d9e2ed859de20292de9a')
|
2012-05-16 03:45:57 +00:00
|
|
|
|
|
|
|
build() {
|
2014-06-05 01:49:13 +00:00
|
|
|
cd "${_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-06-05 01:49:13 +00:00
|
|
|
cd "${_perlmod}-${pkgver}"
|
2013-08-13 01:17:55 +00:00
|
|
|
make test
|
2012-05-16 03:45:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-06-05 01:49:13 +00:00
|
|
|
cd "${_perlmod}-${pkgver}"
|
|
|
|
make install DESTDIR="${pkgdir}"
|
2012-05-16 03:45:57 +00:00
|
|
|
}
|