mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/raku-if: new aport
https://github.com/raku-community-modules/if Conditionally load a distribution
This commit is contained in:
parent
9010443812
commit
b6e1922c4f
1 changed files with 38 additions and 0 deletions
38
testing/raku-if/APKBUILD
Normal file
38
testing/raku-if/APKBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
maintainer="Celeste <cielesti@protonmail.com>"
|
||||
pkgname=raku-if
|
||||
pkgver=0.1.3
|
||||
pkgrel=0
|
||||
pkgdesc="Conditionally load a distribution"
|
||||
url="https://github.com/raku-community-modules/if"
|
||||
arch="all"
|
||||
license="Artistic-2.0"
|
||||
depends="rakudo"
|
||||
makedepends="moarvm-dev rakudo-dev"
|
||||
checkdepends="perl-utils"
|
||||
subpackages="$pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/raku-community-modules/if/archive/refs/tags/$pkgver.tar.gz"
|
||||
builddir="$srcdir/if-$pkgver"
|
||||
options="!archcheck" # Precompiled arch dependent files included (quiet noarch warning)
|
||||
|
||||
build() {
|
||||
RAKUDO_RERESOLVE_DEPENDENCIES=0 \
|
||||
/usr/share/rakudo/tools/install-dist.raku \
|
||||
--to=output --for=vendor
|
||||
}
|
||||
|
||||
check() {
|
||||
prove -e 'raku -Ilib' --ext .rakutest
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/usr/share/rakudo
|
||||
cp -RT output "$pkgdir"/usr/share/rakudo/vendor
|
||||
|
||||
install -Dvm644 META6.json README.md \
|
||||
-t "$pkgdir"/usr/share/doc/$pkgname/
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
dd054c6bbd2f6a68f7c13fe4162858cbf965cf5fcce2a63c86a5a3fbcdef67ed80777b7e7dc316f9ef249f53bfcca1ebc235a82df6b387ec95533f0298ee8c59 raku-if-0.1.3.tar.gz
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue