blob: 4c7fdfb05dd8dd49074046672fb783c308624d18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=pdfjuggler
pkgver=1.1
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=('a3c4aaed75ba58f659a4d714fe9c8cce8c61cbc987aa1c940d7d5cbee311ade2'
'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"
}
|