aports/testing/megatools/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891
Ref https://github.com/mesonbuild/meson/pull/10413
2025-05-09 20:48:14 +00:00

47 lines
1.2 KiB
Text

# Contributor: Jonas Marklen <txc@txc.se>
# Contributor: H <agathos5@gmail.com>
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=megatools
pkgver=1.11.4.20250411
pkgrel=0
pkgdesc="Collection of programs for accessing Mega.nz service"
url="https://xff.cz/megatools/"
arch="all"
license="GPL-2.0-only"
makedepends="
asciidoc
curl-dev
docbook2x
glib-dev
gmp-dev
meson
openssl-dev
"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="https://xff.cz/megatools/builds/megatools-$pkgver.tar.gz"
build() {
abuild-meson \
-Db_lto=true \
. output
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
install -Dm644 contrib/bash-completion/megatools \
"$pkgdir"/usr/share/bash-completion/completions/megatools
for bin in megacopy megadf megadl megaget megals megamkdir megaput megareg megarm; do
ln -s megatools "$pkgdir"/usr/share/bash-completion/completions/$bin
done
}
sha512sums="
d4e08f5858d204199047c038fd7714b1b967cbf2a8f0b45904235538f5df94624e81789d712f88b5180b0bfff8803f125902182d0dd989edf7bb275835d38740 megatools-1.11.4.20250411.tar.gz
"