blob: a2b4c0af5314cf2eaf23a55f8e9a32d0af48e8fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: SahibBommelig <sahib@online.de>
# rmlint PKBUILD for ArchLinux
_pkgname=rmlint
pkgbase="${_pkgname}-git"
pkgname=('rmlint-git' 'rmlint-shredder-git')
pkgver=2.10.1.r34.g2711b84b
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/sahib/rmlint"
license=('GPL3')
makedepends=(
'git'
'scons'
)
source=("$_pkgname"::"git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe master --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_pkgname"
scons config
scons -j4 DEBUG=1 --prefix=${pkgdir}/usr --actual-prefix=/usr
}
package_rmlint-git() {
pkgdesc="Tool to remove duplicates and other lint, being much faster than fdupes"
depends=(
'glib2'
'libelf'
)
provides=("$_pkgname")
conflicts=(${provides[@]})
cd "$srcdir/$_pkgname"
scons DEBUG=1 --prefix="$pkgdir"/usr install --actual-prefix=/usr
rm -rf "$pkgdir"/usr/share/{glib-2.0,icons,applications}
rm -rf "$pkgdir"/usr/lib
}
package_rmlint-shredder-git() {
pkgdesc="Graphical user interface for rmlint"
depends=(
'gtksourceview3'
'python-cairo'
'python-colorlog'
'python-gobject'
'python-parsedatetime'
'rmlint'
'xdg-utils'
)
provides=("rmlint-shredder")
conflicts=(${provides[@]})
cd "$srcdir/$_pkgname"
scons DEBUG=1 --prefix="$pkgdir"/usr install --actual-prefix=/usr
rm -rf "$pkgdir"/usr/{bin,share/locale,share/man}
rm "$pkgdir"/usr/share/glib-2.0/schemas/gschemas.compiled
}
|