diff --git a/Makefile b/Makefile new file mode 100644 --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/files/0001-Fix-gprename-Makefile.patch b/files/0001-Fix-gprename-Makefile.patch new file mode 100644 --- /dev/null +++ b/files/0001-Fix-gprename-Makefile.patch @@ -0,0 +1,160 @@ +From 08aad7a46a1d48936b170393cfe03fe6e3542e44 Mon Sep 17 00:00:00 2001 +From: Pierre-Yves +Date: Sun, 16 Jul 2017 18:00:38 +0200 +Subject: [PATCH] Fix gprename Makefile + +Signed-off-by: Pierre-Yves +--- + Makefile | 117 +++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 57 insertions(+), 60 deletions(-) + +diff --git a/Makefile b/Makefile +index 911f5d3..0b1f97e 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,7 +4,6 @@ + + # Globals: + PREFIX=/usr/local +-DESTDIR=/usr/local + + build: + # Create temporary build directory and modify file locations. +@@ -26,7 +25,7 @@ build: + 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 +@@ -43,69 +42,67 @@ install: uninstall build + msgfmt -o build/locale/zh_CN.mo locale/zh_CN.po + + # Create directories +- install -d "$(DESTDIR)" +- install -d "$(DESTDIR)/bin" +- install -d "/usr/share" +- install -d "/usr/share/icons" +- install -d "$(DESTDIR)/share/applications" +- install -d "$(DESTDIR)/share/man" +- install -d "$(DESTDIR)/share/man/man1" +- install -d "$(DESTDIR)/share/locale/ca/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/de/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/es/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/et/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/fr/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/id/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/it/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/nl/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/pl/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/pt_BR/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/ru/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/sv/LC_MESSAGES" +- install -d "$(DESTDIR)/share/locale/zh_CN/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)" ++ install -d "$(DESTDIR)$(PREFIX)/bin" ++ install -d "$(DESTDIR)/usr/share" ++ install -d "$(DESTDIR)/usr/share/icons" ++ install -d "$(DESTDIR)/usr/share/applications" ++ install -d "$(DESTDIR)$(PREFIX)/share/man" ++ install -d "$(DESTDIR)$(PREFIX)/share/man/man1" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/ca/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/de/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/es/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/et/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/fr/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/id/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/it/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/nl/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/pl/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/pt_BR/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/sv/LC_MESSAGES" ++ install -d "$(DESTDIR)$(PREFIX)/share/locale/zh_CN/LC_MESSAGES" + + # 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 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" +- install -m 644 build/locale/es.mo "$(DESTDIR)/share/locale/es/LC_MESSAGES/gprename.mo" +- install -m 644 build/locale/et.mo "$(DESTDIR)/share/locale/et/LC_MESSAGES/gprename.mo" +- install -m 644 build/locale/fr.mo "$(DESTDIR)/share/locale/fr/LC_MESSAGES/gprename.mo" +- install -m 644 build/locale/id.mo "$(DESTDIR)/share/locale/id/LC_MESSAGES/gprename.mo" +- install -m 644 build/locale/it.mo "$(DESTDIR)/share/locale/it/LC_MESSAGES/gprename.mo" +- install -m 644 build/locale/nl.mo "$(DESTDIR)/share/locale/nl/LC_MESSAGES/gprename.mo" +- install -m 644 build/locale/pl.mo "$(DESTDIR)/share/locale/pl/LC_MESSAGES/gprename.mo" +- install -m 644 build/locale/pt_BR.mo "$(DESTDIR)/share/locale/pt_BR/LC_MESSAGES/gprename.mo" +- 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 755 build/gprename "$(DESTDIR)$(PREFIX)/bin/" ++ install -m 644 gprename-nautilus-actions.xml "$(DESTDIR)/usr/share/applications/" ++ install -m 644 icon/gprename.png "$(DESTDIR)/usr/share/icons/" ++ install -m 644 man/gprename.1 "$(DESTDIR)$(PREFIX)/share/man/man1/" ++ install -m 644 build/locale/ca.mo "$(DESTDIR)$(PREFIX)/share/locale/ca/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/de.mo "$(DESTDIR)$(PREFIX)/share/locale/de/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/es.mo "$(DESTDIR)$(PREFIX)/share/locale/es/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/et.mo "$(DESTDIR)$(PREFIX)/share/locale/et/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/fr.mo "$(DESTDIR)$(PREFIX)/share/locale/fr/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/id.mo "$(DESTDIR)$(PREFIX)/share/locale/id/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/it.mo "$(DESTDIR)$(PREFIX)/share/locale/it/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/nl.mo "$(DESTDIR)$(PREFIX)/share/locale/nl/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/pl.mo "$(DESTDIR)$(PREFIX)/share/locale/pl/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/pt_BR.mo "$(DESTDIR)$(PREFIX)/share/locale/pt_BR/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/ru.mo "$(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/sv.mo "$(DESTDIR)$(PREFIX)/share/locale/sv/LC_MESSAGES/gprename.mo" ++ install -m 644 build/locale/zh_CN.mo "$(DESTDIR)$(PREFIX)/share/locale/zh_CN/LC_MESSAGES/gprename.mo" ++ install -m 644 bin/gprename.desktop "$(DESTDIR)/usr/share/applications/gprename.desktop" + @echo "Installation completed." + + uninstall: clean +- rm -f "$(DESTDIR)/bin/gprename" +- rm -f "/usr/share/applications/gprename.desktop" +- rm -f "$(DESTDIR)/share/applications/gprename-nautilus-actions.xml" +- rm -f "$(DESTDIR)/share/man/man1/gprename.1" +- rm -f "$(DESTDIR)/share/locale/ca/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/de/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/es/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/et/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/fr/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/id/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/it/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/nl/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/pl/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/pt_BR/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/ru/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/sv/LC_MESSAGES/gprename.mo" +- rm -f "$(DESTDIR)/share/locale/zh_CN/LC_MESSAGES/gprename.mo" +- rm -fr "/usr/share/icons/gprename" +- update-desktop-database ++ rm -f "$(DESTDIR)$(PREFIX)/bin/gprename" ++ rm -f "$(DESTDIR)/usr/share/applications/gprename.desktop" ++ rm -f "$(DESTDIR)/usr/share/applications/gprename-nautilus-actions.xml" ++ rm -f "$(DESTDIR)$(PREFIX)/share/man/man1/gprename.1" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/ca/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/de/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/es/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/et/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/fr/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/id/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/it/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/nl/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/pl/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/pt_BR/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/sv/LC_MESSAGES/gprename.mo" ++ rm -f "$(DESTDIR)$(PREFIX)/share/locale/zh_CN/LC_MESSAGES/gprename.mo" ++ rm -fr "$(DESTDIR)/usr/share/icons/gprename" + + clean: + rm -rf build +-- +2.13.3 + diff --git a/package.yml b/package.yml new file mode 100644 --- /dev/null +++ b/package.yml @@ -0,0 +1,24 @@ +name : gprename +version : 20160905 +release : 1 +source : + - https://kent.dl.sourceforge.net/project/gprename/gprename/20160905/gprename-20160905.tar.bz2 : 915140caf40559cdbbc368b8a936192ed07984098c14c95a8e6262e8987449b7 +license : GPL-3.0 +component : system.utils +summary : GPRename is a complete batch renamer for files and directories +description: | + GPRename is a complete batch renamer for files and directories. +rundeps : + - perl-gettext + - perl-glib + - perl-gtk2 + - perl-libintl + - perl-pango +setup : | + %patch -p1 < $pkgfiles/0001-Fix-gprename-Makefile.patch +install : | + %make_install PREFIX=/usr + sed -i 's|/usr/local|/usr|' $installdir/usr/bin/gprename + sed -i 's|/usr/local|/usr|' $installdir/usr/share/applications/gprename-nautilus-actions.xml + sed -i 's|/usr/share/pixmaps/gprename|/usr/share/icons|' $installdir/usr/share/applications/gprename-nautilus-actions.xml + diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml new file mode 100644 --- /dev/null +++ b/pspec_x86_64.xml @@ -0,0 +1,39 @@ + + + gprename + + Pierre-Yves + pyu@riseup.net + + GPL-3.0 + system.utils + GPRename is a complete batch renamer for files and directories + GPRename is a complete batch renamer for files and directories. + + https://solus-project.com/sources/README.Solus + + + gprename + GPRename is a complete batch renamer for files and directories + GPRename is a complete batch renamer for files and directories. + + system.utils + + /usr/bin + /usr/share/applications/gprename-nautilus-actions.xml + /usr/share/applications/gprename.desktop + /usr/share/icons/gprename.png + /usr/share/locale + /usr/share/man + + + + + 2017-07-17 + 20160905 + Packaging update + Pierre-Yves + pyu@riseup.net + + + \ No newline at end of file