archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / rmlint / trunk / PKGBUILD
blob1057726e045f482bfeb38c5a3100f6a289bbb396
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 # Contributor: Blisfull <narthana.epa@gmail.com>
3 # Contributor: SahibBommelig <sahib@online.de>
5 pkgbase=rmlint
6 pkgname=(rmlint rmlint-shredder)
7 pkgver=2.10.1
8 pkgrel=4
9 url="https://github.com/sahib/rmlint"
10 license=('GPL3')
11 arch=('x86_64')
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')
18 build() {
19     cd "$srcdir"/$pkgbase-$pkgver
20     scons config
21     scons -j4 DEBUG=1 --prefix="$pkgdir"/usr --actual-prefix=/usr
24 package_rmlint() {
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