Skip to content

Instantly share code, notes, and snippets.

@melezhik

melezhik/abuild Secret

Created September 5, 2022 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melezhik/4a8ec17d51756ec168418b4c8da5b2e6 to your computer and use it in GitHub Desktop.
Save melezhik/4a8ec17d51756ec168418b4c8da5b2e6 to your computer and use it in GitHub Desktop.
# Contributor:
# Maintainer:
pkgname=raku-kind
pkgver=0.2.2
pkgrel=3
pkgdesc="kind package"
url="https://raku.land/cpan:KAIEPI/Kind"
arch="all !s390x !riscv64"
license="Artistic-2.0"
depends="rakudo"
makedepends="rakudo-dev"
#checkdepends=""
#install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://cpan.metacpan.org/authors/id//K/KA/KAIEPI/Perl6/Kind-0.2.2.tar.gz"
builddir="$srcdir"/Kind-"$pkgver"
check() {
# Replace with proper check command(s)
# prove -e 'raku -Ilib'
:
}
package() {
set -x
ls -l
RAKUDO_RERESOLVE_DEPENDENCIES=0 /bin/install-dist.raku \
--to="$pkgdir"/opt/rakudo-pkg/share/rakudo/vendor --for=vendor
install -Dvm644 LICENSE META6.json README.md \
-t "$pkgdir"/usr/share/doc/"$pkgname"
}
@melezhik
Copy link
Author

melezhik commented Sep 5, 2022

991e1636dc8e:~/packages/raku-kind$ abuild -r
>>> raku-kind: Building packages/raku-kind 0.2.2-r6 (using abuild 3.9.0-r0) started Mon, 05 Sep 2022 17:22:20 +0000
>>> raku-kind: Checking sanity of /home/builder/packages/raku-kind/APKBUILD...
>>> WARNING: raku-kind: No maintainer
>>> raku-kind: Analyzing dependencies...
>>> raku-kind: Installing for build: build-base rakudo-pkg
(1/1) Installing .makedepends-raku-kind (20220905.172220)
OK: 270 MiB in 71 packages
>>> raku-kind: Cleaning up srcdir
>>> raku-kind: Cleaning up pkgdir
>>> raku-kind: Fetching raku-kind-0.2.2.tar.gz::https://cpan.metacpan.org/authors/id//K/KA/KAIEPI/Perl6/Kind-0.2.2.tar.gz
>>> raku-kind: Fetching raku-kind-0.2.2.tar.gz::https://cpan.metacpan.org/authors/id//K/KA/KAIEPI/Perl6/Kind-0.2.2.tar.gz
>>> raku-kind: Checking sha512sums...
raku-kind-0.2.2.tar.gz: OK
>>> raku-kind: Unpacking /var/cache/distfiles/raku-kind-0.2.2.tar.gz...
>>> raku-kind: Entering fakeroot...
total 40
-rw-r--r--    1 root     root           487 Dec 12  2020 CHANGELOG
-rw-r--r--    1 root     root          8902 Dec 12  2020 LICENSE
-rw-r--r--    1 root     root           449 Dec 12  2020 META6.json
-rw-r--r--    1 root     root          2997 Dec 12  2020 README.md
-rw-r--r--    1 root     root          3095 Dec 12  2020 README.pod6
-rw-r--r--    1 root     root           114 Dec 12  2020 dist.ini
drwxr-sr-x    2 root     root          4096 Dec 12  2020 lib
drwxr-sr-x    2 root     root          4096 Dec 12  2020 t
>>> raku-kind*: Running postcheck for raku-kind
>>> ERROR: raku-kind*: Packages must not put anything under /srv, /usr/local or /opt
>>> ERROR: raku-kind*: prepare_subpackages failed
>>> ERROR: raku-kind: rootpkg failed
>>> raku-kind: Uninstalling dependencies...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment