aports/testing/rmlint/APKBUILD

46 lines
1.7 KiB
Text

# Contributor: Edd Salkield <edd@salkield.uk>
# Maintainer: Edd Salkield <edd@salkield.uk>
pkgname=rmlint
pkgver=2.10.2
pkgrel=2
pkgdesc="Remove duplicates and other lint from your filesystem"
url="https://rmlint.readthedocs.io/en/latest/"
arch="all"
license="GPL-3.0-only"
makedepends="scons python3 glib-dev json-glib-dev elfutils-dev py3-sphinx"
checkdepends="dash py3-nose py3-parameterized py3-psutil"
subpackages="$pkgname-doc $pkgname-lang $pkgname-shredder-pyc $pkgname-shredder:shredder:noarch"
source="https://github.com/sahib/rmlint/archive/v$pkgver/rmlint-v$pkgver.tar.gz
remove-usage-of-lseek64.patch
gcc14-remove-header-in-checkfunc.patch
"
options="!check" # awaiting upstream fixes to test suite
# https://github.com/sahib/rmlint/issues/593
build() {
scons config
scons -j $JOBS --prefix="$pkgdir"/usr --actual-prefix=/usr
}
check() {
scons test
}
package() {
scons --prefix=$pkgdir/usr install --actual-prefix=/usr
rm -f "$pkgdir/usr/share/glib-2.0/schemas/gschemas.compiled"
}
shredder() {
depends="polkit gtksourceview py3-cairo dconf py3-gobject3 librsvg xdg-utils"
amove usr/lib
amove usr/share/applications
amove usr/share/glib-2.0
amove usr/share/icons
}
sha512sums="
8f8d58892785e9012cb15f3e89480d9d04772fa3f923064520bf17afcc8948b1a24d6f8399176a1a26bd5036553c605958f3720e40cf6cba135a4f3381131180 rmlint-v2.10.2.tar.gz
f77bf8d77bf7d7c83a91a97ed79733b11ea55bd1814ba13262349a4ebd29bf8de4e76b0a082676c634ef83106953097dae1d6faddfa6aa9866a7cf41ed158b18 remove-usage-of-lseek64.patch
fe3e496de332975bbb26127c2dd6eef9e71d8f442c4ee301cb47d2cdac409c7803b76f74b26f9958b5849e26a2ef6098901284938f43de291af31e775eda69eb gcc14-remove-header-in-checkfunc.patch
"