# Contributor: Edd Salkield # Maintainer: Edd Salkield pkgname=rmlint pkgver=2.10.1 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" 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=" a1281359798816dadaf3a1e706e671dc63edf8f7d176c114a924a1e03fc9ad6fa54d10de701b09b5e364a9a815e0d11bdbef3d16fb7fec74eb85af20a106db1a rmlint-v2.10.1.tar.gz "