aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-28 01:25:30 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-28 01:25:30 -0300
commitbafe84566f1db9f088300e575ed2c0f3be30e530 (patch)
tree6ca909dc48b5bb5c01f246c315505b5dd9b92cf5 /testing
parentf62f2b6236989cae52c222ed08df2a8b0a78e1e3 (diff)
downloadaports-bafe84566f1db9f088300e575ed2c0f3be30e530.tar.bz2
aports-bafe84566f1db9f088300e575ed2c0f3be30e530.tar.xz
testing/perl-file-homedir: fix url fix license
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-file-homedir/APKBUILD19
1 files changed, 6 insertions, 13 deletions
diff --git a/testing/perl-file-homedir/APKBUILD b/testing/perl-file-homedir/APKBUILD
index 193f890574..86da9ea34f 100644
--- a/testing/perl-file-homedir/APKBUILD
+++ b/testing/perl-file-homedir/APKBUILD
@@ -4,43 +4,36 @@
pkgname=perl-file-homedir
_pkgreal=File-HomeDir
pkgver=1.002
-pkgrel=0
+pkgrel=1
pkgdesc="Find your home and other directories on any platform"
-url="http://search.cpan.org/dist/File-HomeDir/"
+url="https://metacpan.org/release/File-HomeDir"
arch="noarch"
-license="GPL PerlArtistic"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-file-which"
-cpanmakedepends=""
-cpancheckdepends=""
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
-checkdepends="$cpancheckdepends"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ 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"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}