summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOliver Kahrmann2024-08-25 13:35:58 +0200
committerOliver Kahrmann2024-08-25 13:35:58 +0200
commitfd0f638d4b556c7169447adbd3169ab2fd729d5d (patch)
treeb7305d9dde39e530203f4aea363b02d8c5098d5e /PKGBUILD
downloadaur-bionic-batch-renamer-git.tar.gz
Initial Version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..1fc4d6f05686
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Oliver Kahrmann <oliver.kahrmann at gmail dot com>
+
+pkgname=bionic-batch-renamer-git
+pkgver=r29.94fb8e3
+pkgrel=1
+pkgdesc="A powerful batch file renaming utility built with the Qt technology stack. "
+arch=('any')
+url="https://github.com/Nomen-Luni/Bionic-Batch-Renamer"
+license=('GPL3')
+makedepends=('git')
+depends=('qt5-base' 'libkexiv2-qt5')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("${pkgname%-git}::git+https://github.com/Nomen-Luni/Bionic-Batch-Renamer.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ qmake Code/Batch_Renamer.pro
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ base_dir_deb_packaging="Deb Packaging/bionic-batch-renamer_1.0.11_amd64"
+
+ install -Dm755 "Batch_Renamer" "${pkgdir}/usr/bin/Batch_Renamer"
+ install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 "$base_dir_deb_packaging/usr/share/applications/Bionic_Batch_Renamer.desktop" "${pkgdir}/usr/share/applications/Bionic_Batch_Renamer.desktop"
+
+ # Plasma 5:
+ install -Dm644 "$base_dir_deb_packaging/usr/share/kservices5/ServiceMenus/Bionic_Batch_Renamer.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/Bionic_Batch_Renamer.desktop"
+ # Plasma 6:
+ install -Dm644 "$base_dir_deb_packaging/usr/share/kservices5/ServiceMenus/Bionic_Batch_Renamer.desktop" "${pkgdir}/usr/share/kio/servicemenus/Bionic_Batch_Renamer.desktop"
+
+}