2015-10-14 12:10:25 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
|
|
|
# Contributor: Blisfull <narthana.epa@gmail.com>
|
|
|
|
# Contributor: SahibBommelig <sahib@online.de>
|
2015-10-13 18:04:52 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove line appending -march=native to CFLAGS in SConstruct
|
|
|
|
|
2015-11-02 16:57:55 +00:00
|
|
|
pkgbase=rmlint
|
|
|
|
pkgname=(rmlint rmlint-shredder)
|
|
|
|
pkgver=2.4.1
|
2015-10-14 12:10:25 +00:00
|
|
|
pkgrel=1
|
2015-10-13 18:04:52 +00:00
|
|
|
url="https://github.com/sahib/rmlint"
|
|
|
|
license=('GPL3')
|
2015-11-02 16:57:55 +00:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
makedepends=('scons' 'python-sphinx' 'gettext' 'sqlite' 'libutil-linux'
|
|
|
|
'binutils' 'json-glib' 'libelf' 'python-gobject' 'python-cairo'
|
|
|
|
'dconf' 'gtksourceview3' 'librsvg' 'xdg-utils')
|
|
|
|
source=("https://github.com/sahib/rmlint/archive/v$pkgver/$pkgbase-$pkgver.tar.gz")
|
|
|
|
sha256sums=('c09dce651f23568767b732a7529aeda8e81b1875cf81edc9e09b4e194d1e47c9')
|
2015-10-13 18:04:52 +00:00
|
|
|
|
|
|
|
prepare() {
|
2015-11-02 16:57:55 +00:00
|
|
|
cd "$srcdir"/$pkgbase-$pkgver
|
|
|
|
sed 's/python4/python/' -i gui/SConscript
|
2015-10-13 18:04:52 +00:00
|
|
|
sed -i '/march=native/d' SConstruct
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2015-11-02 16:57:55 +00:00
|
|
|
cd "$srcdir"/$pkgbase-$pkgver
|
2015-10-13 18:04:52 +00:00
|
|
|
scons config
|
|
|
|
scons -j4 DEBUG=1 --prefix="$pkgdir"/usr --actual-prefix=/usr
|
|
|
|
}
|
|
|
|
|
2015-11-02 16:57:55 +00:00
|
|
|
package_rmlint() {
|
|
|
|
pkgdesc="Tool to remove duplicates and other lint, being much faster than fdupes"
|
|
|
|
depends=('sqlite' 'libutil-linux' 'binutils' 'json-glib' 'libelf')
|
|
|
|
|
|
|
|
cd "$srcdir"/$pkgbase-$pkgver
|
2015-10-13 18:04:52 +00:00
|
|
|
scons DEBUG=1 --prefix="$pkgdir"/usr install --actual-prefix=/usr
|
2015-11-02 16:57:55 +00:00
|
|
|
|
|
|
|
rm -rf "$pkgdir"/usr/share/{glib-2.0,icons,applications}
|
|
|
|
rm -rf "$pkgdir"/usr/lib
|
|
|
|
}
|
|
|
|
|
|
|
|
package_rmlint-shredder() {
|
|
|
|
pkgdesc="Graphical user interface for rmlint"
|
|
|
|
depends=('rmlint' 'python-gobject' 'python-cairo' 'dconf' 'librsvg'
|
|
|
|
'gtksourceview3' 'xdg-utils')
|
|
|
|
install=rmlint-shredder.install
|
|
|
|
|
|
|
|
cd "$srcdir"/$pkgbase-$pkgver
|
|
|
|
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
|
2015-10-13 18:04:52 +00:00
|
|
|
}
|