[arch-commits] Commit in rmlint/trunk (PKGBUILD rmlint-shredder.install)
Massimiliano Torromeo
mtorromeo at archlinux.org
Mon Nov 2 13:21:23 UTC 2015
Date: Monday, November 2, 2015 @ 14:21:22
Author: mtorromeo
Revision: 145634
upgpkg: rmlint 2.4.1-1
Updated to 2.4.1 and split shredder GUI into separate package
Added:
rmlint/trunk/rmlint-shredder.install
Modified:
rmlint/trunk/PKGBUILD
-------------------------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++-----------
rmlint-shredder.install | 12 +++++++++++
2 files changed, 48 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-11-02 13:18:53 UTC (rev 145633)
+++ PKGBUILD 2015-11-02 13:21:22 UTC (rev 145634)
@@ -3,25 +3,50 @@
# Contributor: Blisfull <narthana.epa at gmail.com>
# Contributor: SahibBommelig <sahib at online.de>
-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"/$pkgbase-$pkgver
+ sed 's/python4/python/' -i gui/SConscript
+}
+
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
+}
Added: rmlint-shredder.install
===================================================================
--- rmlint-shredder.install (rev 0)
+++ rmlint-shredder.install 2015-11-02 13:21:22 UTC (rev 145634)
@@ -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
+}
More information about the arch-commits
mailing list