Commit f6c6da99 authored by Francesco Colista's avatar Francesco Colista

community/perl-config-autoconf: upgrade to 0.314, modernize APKBUILD

parent af0bd582
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-config-autoconf pkgname=perl-config-autoconf
_pkgreal=Config-AutoConf _pkgreal=Config-AutoConf
pkgver=0.313 pkgver=0.314
pkgrel=0 pkgrel=0
pkgdesc="A module to implement some of AutoConf macros in pure perl." pkgdesc="A module to implement some of AutoConf macros in pure perl."
url="http://search.cpan.org/dist/Config-AutoConf/" url="http://search.cpan.org/dist/Config-AutoConf/"
...@@ -17,8 +17,13 @@ subpackages="$pkgname-doc" ...@@ -17,8 +17,13 @@ subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
check() {
cd "$builddir"
make test
}
prepare() { prepare() {
default_prepare || return 1 default_prepare
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
...@@ -28,15 +33,13 @@ prepare() { ...@@ -28,15 +33,13 @@ prepare() {
build() { build() {
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test make
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="0d4fc982740e0d96d01d6b74acecbbc5 Config-AutoConf-0.313.tar.gz" sha512sums="7c7e411356a690172e78c360962bd92a77eea4ed835cf445ffb81c78f6d5179354d7246909ca55462b137de75b0ad86e21d3a50fe630518f83e70e6e0de8dbca Config-AutoConf-0.314.tar.gz"
sha256sums="3728867041d1bdbc00dffae5658b831e53f99068d3fbf0e8fb95b82a1953aeee Config-AutoConf-0.313.tar.gz"
sha512sums="6867c862b6a6ee534f7a693102e37ea86426b10f6fb58e1206a2de8abe0fbe88728faedb11aad7202f7614b3fc24b5faf21a768037c12aff671d7d97dfd0d8ef Config-AutoConf-0.313.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment