mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/rmlint to 2.4.1-1
This commit is contained in:
parent
2d00061367
commit
4414203795
2 changed files with 45 additions and 12 deletions
|
@ -6,30 +6,51 @@
|
|||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - remove line appending -march=native to CFLAGS in SConstruct
|
||||
|
||||
pkgname=rmlint
|
||||
pkgver=2.2.2
|
||||
pkgbase=rmlint
|
||||
pkgname=(rmlint rmlint-shredder)
|
||||
pkgver=2.4.1
|
||||
pkgrel=1
|
||||
pkgdesc="Tool to remove duplicates and other lint, being much faster than fdupes"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/sahib/rmlint"
|
||||
license=('GPL3')
|
||||
depends=('sqlite' 'libutil-linux' 'binutils' 'json-glib' 'libelf')
|
||||
makedepends=('scons' 'python-sphinx' 'gettext')
|
||||
source=("https://github.com/sahib/rmlint/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('08ad28150d99d704d356cdf050c4499f98a0d0c363a2230619d0b3e53e5f9dbb')
|
||||
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')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"/$pkgname-$pkgver
|
||||
cd "$srcdir"/$pkgbase-$pkgver
|
||||
sed 's/python4/python/' -i gui/SConscript
|
||||
sed -i '/march=native/d' SConstruct
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/$pkgname-$pkgver
|
||||
cd "$srcdir"/$pkgbase-$pkgver
|
||||
scons config
|
||||
scons -j4 DEBUG=1 --prefix="$pkgdir"/usr --actual-prefix=/usr
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/$pkgname-$pkgver
|
||||
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')
|
||||
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
|
||||
}
|
||||
|
|
12
community/rmlint/rmlint-shredder.install
Normal file
12
community/rmlint/rmlint-shredder.install
Normal file
|
@ -0,0 +1,12 @@
|
|||
post_install() {
|
||||
glib-compile-schemas usr/share/glib-2.0/schemas
|
||||
xdg-icon-resource forceupdate --theme hicolor
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in a new issue