summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-11-11 00:35:45 +0200
committerDimitris Kiziridis2020-11-11 00:35:45 +0200
commite7e165780a9e727b9aeb5db9835aee374a2f1351 (patch)
treeb75449f999e855898922a2bf378b3b6fb9a38ef1
downloadaur-e7e165780a9e727b9aeb5db9835aee374a2f1351.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..55903f5c829
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = pdfjuggler
+ pkgdesc = A desktop tool to mix, reorder and select PDF pages
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://www.bernardi.cloud/pdfjuggler
+ arch = any
+ license = GPL3
+ makedepends = gendesk
+ depends = java-runtime>=8
+ depends = bash
+ source = pdfjuggler-1.0.jar::https://github.com/bernarpa/pdfjuggler/releases/download/v1.0/pdfjuggler-1.0.jar
+ source = pdfjuggler.png::https://github.com/bernarpa/pdfjuggler/raw/main/graphics/icon-256.png
+ sha256sums = d2cf2647dcb14814e80deed17f0c3fd70e2f87bed376512a3ee2e4dd3f7fadb7
+ sha256sums = a4a8891791ec582e27bdcf8149a01340494c0613e9728f37d285fb56dc1a73b1
+
+pkgname = pdfjuggler
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bba69e67b93
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+
+pkgname=pdfjuggler
+pkgver=1.0
+pkgrel=1
+pkgdesc="A desktop tool to mix, reorder and select PDF pages"
+arch=('any')
+url='https://www.bernardi.cloud/pdfjuggler'
+license=('GPL3')
+depends=('java-runtime>=8' 'bash')
+makedepends=('gendesk')
+source=("${pkgname}-${pkgver}.jar::https://github.com/bernarpa/pdfjuggler/releases/download/v${pkgver}/pdfjuggler-${pkgver}.jar"
+ "${pkgname}.png::https://github.com/bernarpa/pdfjuggler/raw/main/graphics/icon-256.png")
+sha256sums=('d2cf2647dcb14814e80deed17f0c3fd70e2f87bed376512a3ee2e4dd3f7fadb7'
+ 'a4a8891791ec582e27bdcf8149a01340494c0613e9728f37d285fb56dc1a73b1')
+
+package() {
+ install -Dm644 ${pkgname}-${pkgver}.jar -t "${pkgdir}/usr/share/java/${pkgname}"
+ echo "#!/usr/bin/env bash
+ exec /usr/bin/java -jar '/usr/share/java/${pkgname}/${pkgname}-${pkgver}.jar' "\$\@"" > pdfjuggler.sh
+ install -Dm644 ${pkgname}.png -t "${pkgdir}/usr/share/pixmaps"
+ install -Dm755 pdfjuggler.sh "${pkgdir}/usr/bin/pdfjuggler"
+ gendesk -f -n --pkgname "${pkgname}" \
+ --pkgdesc "$pkgdesc" \
+ --name "PDF Juggler" \
+ --comment "$pkgdesc" \
+ --exec "${pkgname}" \
+ --categories 'Utility;Application' \
+ --icon "${pkgname}"
+ install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
+}