aports/community/unpaper/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

32 lines
930 B
Text

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=unpaper
pkgver=7.0.0
pkgrel=1
pkgdesc="Post-processing tool for scanned sheets of paper"
url="https://github.com/unpaper/unpaper"
arch="all"
license="GPL-2.0-only"
makedepends="ffmpeg-dev meson py3-sphinx"
checkdepends="py3-pillow py3-pytest"
subpackages="$pkgname-doc"
source="https://github.com/unpaper/unpaper/releases/download/unpaper-$pkgver/unpaper-$pkgver.tar.xz"
options="!check" # they hang for some reason
build() {
abuild-meson . output
meson compile -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
check() {
"$builddir"/output/unpaper --help
meson test --print-errorlogs -C output
}
sha512sums="
58da969e773bf16ffee98b96f903ac5347f66d9a93c63bdb9131f5d45f4d7973c09f364ac2f27f8cb61f75de0421c6b01aa248fa9619fbdbde30fcebc76aa484 unpaper-7.0.0.tar.xz
"