aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/perl-glib-ex-objectbits/APKBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/testing/perl-glib-ex-objectbits/APKBUILD b/testing/perl-glib-ex-objectbits/APKBUILD
index b00c9458e5..ccb184b8df 100644
--- a/testing/perl-glib-ex-objectbits/APKBUILD
+++ b/testing/perl-glib-ex-objectbits/APKBUILD
@@ -4,35 +4,31 @@
pkgname=perl-glib-ex-objectbits
_pkgreal=Glib-Ex-ObjectBits
pkgver=16
-pkgrel=0
+pkgrel=1
pkgdesc="Helpers for Glib objects."
-url="http://search.cpan.org/dist/Glib-Ex-ObjectBits/"
+url="https://metacpan.org/release/Glib-Ex-ObjectBits"
arch="noarch"
-license="GPL-3.0"
+license="GPL-3.0-or-later"
cpandepends="perl-devel-globaldestruction perl-glib"
-cpanmakedepends=" "
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}