[arch-commits] Commit in gprename/repos/community-any (3 files)
Jaroslav Lichtblau
jlichtblau at nymeria.archlinux.org
Sat Jun 28 14:25:14 UTC 2014
Date: Saturday, June 28, 2014 @ 16:25:14
Author: jlichtblau
Revision: 113702
archrelease: copy trunk to community-any
Added:
gprename/repos/community-any/PKGBUILD
(from rev 113701, gprename/trunk/PKGBUILD)
gprename/repos/community-any/gprename-build.patch
(from rev 113701, gprename/trunk/gprename-build.patch)
Deleted:
gprename/repos/community-any/PKGBUILD
----------------------+
PKGBUILD | 56 ++++++++++++++++++++++++++-----------------------
gprename-build.patch | 43 +++++++++++++++++++++++++++++++++++++
2 files changed, 73 insertions(+), 26 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2014-06-28 14:25:05 UTC (rev 113701)
+++ PKGBUILD 2014-06-28 14:25:14 UTC (rev 113702)
@@ -1,26 +0,0 @@
-# $Id$
-# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
-# Contributor: Allan McRae <allan at archlinux.org>
-# Contributor: Nick Bolten <Shirakawasuna at gmail _dot_ com>
-
-pkgname=gprename
-pkgver=2.7
-pkgrel=3
-pkgdesc="A GTK2 batch renamer for files and directories"
-arch=('any')
-url="http://gprename.sourceforge.net/"
-license=('GPL3')
-depends=('gtk2-perl' 'perl-libintl-perl' 'perl-locale-gettext')
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
-sha256sums=('fa80ae7d4280d46ed01c4301711e713a787a209ff4e64b3f06142ec2c3317aa4')
-
-package() {
- cd ${srcdir}/${pkgname}/trunk
-
- sed '30s/install: uninstall/install:/' -i Makefile
- make PREFIX=/usr DESTDIR=${pkgdir}/usr install
-
-#29940 fix
- sed 's#/usr/local#/usr#' -i ${pkgdir}/usr/bin/$pkgname
- sed 's#/usr/local#/usr#' -i ${pkgdir}/usr/share/applications/$pkgname*.*
-}
Copied: gprename/repos/community-any/PKGBUILD (from rev 113701, gprename/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-06-28 14:25:14 UTC (rev 113702)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Nick Bolten <Shirakawasuna at gmail _dot_ com>
+
+pkgname=gprename
+pkgver=20140325
+pkgrel=1
+pkgdesc="A GTK2 batch renamer for files and directories"
+arch=('any')
+url="http://gprename.sourceforge.net/"
+license=('GPL3')
+depends=('gtk2-perl' 'perl-libintl-perl' 'perl-locale-gettext')
+makedepends=('patch')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
+ $pkgname-build.patch)
+sha256sums=('8322a37ba720d58c520d29985175b86e9a4a74ce7465df8a5d67339dffb6140e'
+ '8ade8ded3e4185d0d465668d2d519bc6eaf668f354109c45f42eeb05ba502cc0')
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ patch -Np1 -i "${srcdir}"/$pkgname-build.patch
+
+ make PREFIX=/usr DESTDIR="${pkgdir}"/usr install
+
+#29940 fix
+ sed 's#/usr/local#/usr#' -i "${pkgdir}"/usr/bin/$pkgname
+ sed 's#/usr/local#/usr#' -i "${pkgdir}"/usr/share/applications/$pkgname*.*
+}
Copied: gprename/repos/community-any/gprename-build.patch (from rev 113701, gprename/trunk/gprename-build.patch)
===================================================================
--- gprename-build.patch (rev 0)
+++ gprename-build.patch 2014-06-28 14:25:14 UTC (rev 113702)
@@ -0,0 +1,43 @@
+diff -ruN gprename-20140325/Makefile gprename-20140325-orig/Makefile
+--- gprename-20140325/Makefile 2014-03-24 22:06:04.000000000 +0100
++++ gprename-20140325-orig/Makefile 2014-06-28 16:05:47.453008829 +0200
+@@ -26,7 +26,7 @@
+ perl -ne 's!\@INSTALLDIR\@!$(PREFIX)!g ; print' < bin/gprename > build/gprename
+ perl -ne 's!\@INSTALLDIR\@!$(PREFIX)!g ; print' < bin/gprename.desktop > build/gprename.desktop
+
+-install: uninstall build
++install: build
+ # Compile all .po files to .mo
+ msgfmt -o build/locale/ca.mo locale/ca.po
+ msgfmt -o build/locale/de.mo locale/de.po
+@@ -45,8 +45,8 @@
+ # Create directories
+ install -d "$(DESTDIR)"
+ install -d "$(DESTDIR)/bin"
+- install -d "/usr/share"
+- install -d "/usr/share/icons"
++ install -d "$(DESTDIR)/share"
++ install -d "$(DESTDIR)/share/icons"
+ install -d "$(DESTDIR)/share/applications"
+ install -d "$(DESTDIR)/share/man"
+ install -d "$(DESTDIR)/share/man/man1"
+@@ -67,7 +67,7 @@
+ # Copy all files in the filesystem
+ install -m 755 build/gprename "$(DESTDIR)/bin/"
+ install -m 644 gprename-nautilus-actions.xml "$(DESTDIR)/share/applications/"
+- install -m 644 icon/gprename.png "/usr/share/icons/"
++ install -m 644 icon/gprename.png "$(DESTDIR)/share/icons/"
+ install -m 644 man/gprename.1 "$(DESTDIR)/share/man/man1/"
+ install -m 644 build/locale/ca.mo "$(DESTDIR)/share/locale/ca/LC_MESSAGES/gprename.mo"
+ install -m 644 build/locale/de.mo "$(DESTDIR)/share/locale/de/LC_MESSAGES/gprename.mo"
+@@ -82,8 +82,8 @@
+ install -m 644 build/locale/ru.mo "$(DESTDIR)/share/locale/ru/LC_MESSAGES/gprename.mo"
+ install -m 644 build/locale/sv.mo "$(DESTDIR)/share/locale/sv/LC_MESSAGES/gprename.mo"
+ install -m 644 build/locale/zh_CN.mo "$(DESTDIR)/share/locale/zh_CN/LC_MESSAGES/gprename.mo"
+- desktop-file-install bin/gprename.desktop
+- update-desktop-database
++ install -m 644 bin/gprename.desktop "$(DESTDIR)/share/applications/gprename.desktop"
++# update-desktop-database
+ @echo "Installation completed."
+
+ uninstall: clean
More information about the arch-commits
mailing list