diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-01-24 11:29:22 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-24 10:37:45 +0000 |
commit | 59913720c4373df63fbc34f84ce37d7cfa5d4838 (patch) | |
tree | ae30e2a57c9d029d0ba30c0289e2bcf9937cf30a /main/perl-test-harness/APKBUILD | |
parent | 5542fcd0bcfea9a2b11bcb6b39b6526350b14614 (diff) | |
download | aports-59913720c4373df63fbc34f84ce37d7cfa5d4838.tar.bz2 aports-59913720c4373df63fbc34f84ce37d7cfa5d4838.tar.xz |
main/perl-test-harness: fixes in apkbuild
- add depends= in utils subpackage
- fix replaces= in utils subpackage
- move *.pod files to doc subpackage
Diffstat (limited to 'main/perl-test-harness/APKBUILD')
-rw-r--r-- | main/perl-test-harness/APKBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main/perl-test-harness/APKBUILD b/main/perl-test-harness/APKBUILD index 772cca33ad..4b3ac2aa3d 100644 --- a/main/perl-test-harness/APKBUILD +++ b/main/perl-test-harness/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-test-harness _pkgreal=Test-Harness pkgver=3.36 -pkgrel=1 +pkgrel=2 pkgdesc="Run Perl standard test scripts with statistics" url="http://search.cpan.org/dist/Test-Harness/" arch="noarch" @@ -37,7 +37,8 @@ package() { utils() { pkgdesc="$pkgdesc (utilities)" - replaces="perl" + depends="$pkgname perl" + replaces="perl-utils" mkdir -p "$subpkgdir"/usr || return 1 mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } @@ -45,6 +46,11 @@ utils() { doc() { default_doc replaces="perl-doc" + local file; for file in $(find "$pkgdir" -name "*.pod"); do + file=${file#$pkgdir/} + mkdir -p "$subpkgdir"/${file%/*} || return 1 + mv "$pkgdir"/$file "$subpkgdir"/$file || return 1 + done } md5sums="4c8d9c77e8e06ca96c7383c05c8f3616 Test-Harness-3.36.tar.gz" |