diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-28 00:47:19 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-28 00:47:19 -0300 |
commit | 16060c12e6b0cce4ce7913925dc3d2b4da14ef3c (patch) | |
tree | b104f3719ed6dd9f4c9e9d902f9c93fe2609708c /testing/perl-dancer-plugin-swig | |
parent | c16d7e85f2fdc30594a0c5cac672c58605547e1c (diff) | |
download | aports-16060c12e6b0cce4ce7913925dc3d2b4da14ef3c.tar.bz2 aports-16060c12e6b0cce4ce7913925dc3d2b4da14ef3c.tar.xz |
testing/perl-dancer-plugin-swig: fix url fix license
Diffstat (limited to 'testing/perl-dancer-plugin-swig')
-rw-r--r-- | testing/perl-dancer-plugin-swig/APKBUILD | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/testing/perl-dancer-plugin-swig/APKBUILD b/testing/perl-dancer-plugin-swig/APKBUILD index 0328828404..8d4a389844 100644 --- a/testing/perl-dancer-plugin-swig/APKBUILD +++ b/testing/perl-dancer-plugin-swig/APKBUILD @@ -4,11 +4,11 @@ pkgname=perl-dancer-plugin-swig _pkgreal=Dancer-Plugin-Swig pkgver=0.02 -pkgrel=0 +pkgrel=1 pkgdesc="A plugin for swig client" -url="http://search.cpan.org/dist/Dancer-Plugin-Swig/" +url="https://metacpan.org/release/Dancer-Plugin-Swig" arch="noarch" -license="GPL PerlArtistic" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl perl-dancer perl-webservice-swigclient" cpanmakedepends="perl-test-most perl-test-easy" depends="$cpandepends" @@ -16,23 +16,20 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/L/LO/LOGIE/$_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 } |