diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-28 02:19:49 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-28 02:20:29 -0300 |
commit | 549a1425aa47205bde5c5212362a7a8be945bbf3 (patch) | |
tree | 1b6df780451c37c4582e4f4728168d98ac54589c /testing/perl-glib-ex-objectbits/APKBUILD | |
parent | 67db4acba879341c7ea0c34db9acc2d0a9710ceb (diff) | |
download | aports-549a1425aa47205bde5c5212362a7a8be945bbf3.tar.bz2 aports-549a1425aa47205bde5c5212362a7a8be945bbf3.tar.xz |
testing/perl-glib-ex-objectbits: fix url fix license
Diffstat (limited to 'testing/perl-glib-ex-objectbits/APKBUILD')
-rw-r--r-- | testing/perl-glib-ex-objectbits/APKBUILD | 20 |
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 } |