1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 # Contributor: Blisfull <narthana.epa@gmail.com>
3 # Contributor: SahibBommelig <sahib@online.de>
6 pkgname=(rmlint rmlint-shredder)
9 url="https://github.com/sahib/rmlint"
12 makedepends=('scons' 'python-sphinx' 'gettext' 'sqlite' 'util-linux-libs'
13 'binutils' 'json-glib' 'libelf' 'python-gobject' 'python-cairo'
14 'dconf' 'gtksourceview3' 'librsvg' 'desktop-file-utils' 'python-requests')
15 source=("https://github.com/sahib/rmlint/archive/v$pkgver/$pkgbase-$pkgver.tar.gz")
16 sha256sums=('10e72ba4dd9672d1b6519c0c94eae647c5069c7d11f1409a46e7011dd0c6b883')
19 cd "$srcdir"/$pkgbase-$pkgver
21 scons -j4 DEBUG=1 --prefix="$pkgdir"/usr --actual-prefix=/usr
25 pkgdesc="Tool to remove duplicates and other lint, being much faster than fdupes"
26 depends=('sqlite' 'util-linux-libs' 'binutils' 'json-glib' 'libelf')
28 cd "$srcdir"/$pkgbase-$pkgver
29 scons DEBUG=1 --prefix="$pkgdir"/usr install --actual-prefix=/usr
31 rm -rf "$pkgdir"/usr/share/{glib-2.0,icons,applications}
32 rm -rf "$pkgdir"/usr/lib
35 package_rmlint-shredder() {
36 pkgdesc="Graphical user interface for rmlint"
37 depends=('rmlint' 'python-gobject' 'python-cairo' 'dconf' 'librsvg'
38 'gtksourceview3' 'xdg-utils')
40 cd "$srcdir"/$pkgbase-$pkgver
41 scons DEBUG=1 --prefix="$pkgdir"/usr install --actual-prefix=/usr
43 rm -rf "$pkgdir"/usr/{bin,share/locale,share/man}
44 rm "$pkgdir"/usr/share/glib-2.0/schemas/gschemas.compiled