aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zef/APKBUILD
blob: b5f09a465a1d5c8c04ef3f333a06fdbbeb6bdc65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
pkgname=zef
pkgver=0.6.6
pkgrel=0
pkgdesc="Perl6 Module Management"
url="https://github.com/ugexe/zef"
arch="all !x86 !armhf !armv7 !s390x" # limited by rakudo
options="!archcheck" # Precompiled arch dependent files included (quiet noarch warning)
license="Artistic-2.0"
depends="rakudo git wget curl tar unzip perl perl-utils"
makedepends="rakudo-dev"
install=""
subpackages="${pkgname}-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/ugexe/zef/archive/v${pkgver}.tar.gz"
builddir="$srcdir"/"$pkgname"-"$pkgver"

check() {
	cd "$builddir"
	prove -e 'perl6 -Ilib'
}

package() {
	cd "$builddir"
	RAKUDO_RERESOLVE_DEPENDENCIES=0 /usr/share/perl6/bin/install-dist.p6 \
		--to="$pkgdir/usr/share/perl6/vendor" --for=vendor
	rm "$pkgdir"/usr/share/perl6/vendor/bin/zef-j \
		"$pkgdir"/usr/share/perl6/vendor/bin/zef-m
	mkdir -p "$pkgdir"/usr/bin
	ln -s /usr/share/perl6/vendor/bin/zef "$pkgdir"/usr/bin/zef
}

doc() {
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
	for file in LICENSE META6.json README.pod; do
		cp $file "$subpkgdir"/usr/share/doc/"$pkgname"
	done
}
sha512sums="2a2ae3dcf271fd1382fcf8d01049858015fd581a578a9e80bd6893141005c64b28cb667a8ac91e42c03b4ed466b78f5cac824a34d3391f9cd08d6101080d4e80  zef-0.6.6.tar.gz"