mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
55 lines
1.8 KiB
Bash
55 lines
1.8 KiB
Bash
# $Id$
|
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
|
# Contributor: Blisfull <narthana.epa@gmail.com>
|
|
# Contributor: SahibBommelig <sahib@online.de>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - remove line appending -march=native to CFLAGS in SConstruct
|
|
|
|
pkgbase=rmlint
|
|
pkgname=(rmlint rmlint-shredder)
|
|
pkgver=2.4.3
|
|
pkgrel=2
|
|
url="https://github.com/sahib/rmlint"
|
|
license=('GPL3')
|
|
arch=('i686' 'x86_64')
|
|
makedepends=('scons' 'python-sphinx' 'gettext' 'sqlite' 'libutil-linux'
|
|
'binutils' 'json-glib' 'libelf' 'python-gobject' 'python-cairo'
|
|
'dconf' 'gtksourceview3' 'librsvg' 'desktop-file-utils')
|
|
source=("https://github.com/sahib/rmlint/archive/v$pkgver/$pkgbase-$pkgver.tar.gz")
|
|
sha256sums=('499c38449038c30b7704760d1251f0098fb28f6037e54c434ef24d6d18d0b5a5')
|
|
|
|
prepare() {
|
|
cd "$srcdir"/$pkgbase-$pkgver
|
|
sed 's/python4/python/' -i gui/SConscript
|
|
sed -i '/march=native/d' SConstruct
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir"/$pkgbase-$pkgver
|
|
scons config
|
|
scons -j4 DEBUG=1 --prefix="$pkgdir"/usr --actual-prefix=/usr
|
|
}
|
|
|
|
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
|
|
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() {
|
|
pkgdesc="Graphical user interface for rmlint"
|
|
depends=('rmlint' 'python-gobject' 'python-cairo' 'dconf' 'librsvg'
|
|
'gtksourceview3' 'xdg-utils')
|
|
|
|
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
|
|
}
|