aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-symbol-global-name
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-11 12:20:41 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-13 09:08:07 +0000
commit1bc72d05b699ea7e37a57aeb2295720a093f5d9b (patch)
treea64903a77945c3267e115632f79ae61cc09554b2 /main/perl-symbol-global-name
parenta2451f96f905a52d96c89c1fbc702055436f9323 (diff)
downloadaports-1bc72d05b699ea7e37a57aeb2295720a093f5d9b.tar.bz2
aports-1bc72d05b699ea7e37a57aeb2295720a093f5d9b.tar.xz
main/perl-symbol-global-name: add missing make dependency and modernize
Diffstat (limited to 'main/perl-symbol-global-name')
-rw-r--r--main/perl-symbol-global-name/APKBUILD29
1 files changed, 17 insertions, 12 deletions
diff --git a/main/perl-symbol-global-name/APKBUILD b/main/perl-symbol-global-name/APKBUILD
index 1cba098ade..1367a723c5 100644
--- a/main/perl-symbol-global-name/APKBUILD
+++ b/main/perl-symbol-global-name/APKBUILD
@@ -4,38 +4,43 @@
pkgname=perl-symbol-global-name
_pkgreal=Symbol-Global-Name
pkgver=0.05
-pkgrel=0
-pkgdesc="finds name and type of a global variable"
+pkgrel=1
+pkgdesc="Finds name and type of a global variable"
url="http://search.cpan.org/dist/Symbol-Global-Name/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev $cpanmakedepends perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="95e374d0f0df78d593de208f651391d6 Symbol-Global-Name-0.05.tar.gz"
-sha256sums="0f7623e9d724760aa64040222da1d82f1188586791329261cc60dad1d60d6a92 Symbol-Global-Name-0.05.tar.gz"
sha512sums="23c14ac5d022f3d61af63d26bf3740eca4080a0bd72719e998b991dc93cf53b668615ef1718ac5e43e8bb227b050a381e75af4c83ddbe90840c7ab2255052c0b Symbol-Global-Name-0.05.tar.gz"