[arch-commits] Commit in gprename/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 15:10:44 UTC 2020


    Date: Tuesday, July 7, 2020 @ 15:10:43
  Author: felixonmars
Revision: 658847

archrelease: copy trunk to community-staging-any

Added:
  gprename/repos/community-staging-any/
  gprename/repos/community-staging-any/PKGBUILD
    (from rev 658846, gprename/trunk/PKGBUILD)
  gprename/repos/community-staging-any/gprename-build.patch
    (from rev 658846, gprename/trunk/gprename-build.patch)

----------------------+
 PKGBUILD             |   35 +++++++++++++++++++++++++++++++++++
 gprename-build.patch |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

Copied: gprename/repos/community-staging-any/PKGBUILD (from rev 658846, gprename/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 15:10:43 UTC (rev 658847)
@@ -0,0 +1,35 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Nick Bolten <Shirakawasuna at gmail _dot_ com>
+
+pkgname=gprename
+pkgver=20190221
+pkgrel=2
+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=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
+        $pkgname-build.patch)
+sha256sums=('7558c4e9738a549c661712d2a84a446e5a803725e66a62edc6ace42737413ac4'
+            '8ade8ded3e4185d0d465668d2d519bc6eaf668f354109c45f42eeb05ba502cc0')
+
+prepare() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+
+  patch -Np1 -i "${srcdir}"/$pkgname-build.patch
+}
+
+package() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+
+  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*.*
+#45250 fix
+  sed 's#/usr/share/pixmaps/gprename#/usr/share/icons#' -i "${pkgdir}"/usr/bin/$pkgname
+}

Copied: gprename/repos/community-staging-any/gprename-build.patch (from rev 658846, gprename/trunk/gprename-build.patch)
===================================================================
--- community-staging-any/gprename-build.patch	                        (rev 0)
+++ community-staging-any/gprename-build.patch	2020-07-07 15:10:43 UTC (rev 658847)
@@ -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