blob: a9a4abfc13141cd4c8bfcc3e22dc9757c752ba12 (
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
32
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=qrcodegen-java
pkgver=1.14.2
pkgrel=2
pkgdesc='A handy software utility that helps you convey messages via QR codes. With support for anything from free text to URLs, WLAN credentials, emails, and geo URI schemes'
arch=('any')
url='https://sites.google.com/site/qrcodeforwn/home/qr-code-generator-for-wireless-networks'
license=('GPL3')
depends=('java-runtime=8' 'bash')
makedepends=('gendesk')
source=("${pkgname%-java}-${pkgver}.zip::https://files.giga-downloads.de/security-tools-q/qrcodegen_${pkgver}.zip"
'qrcodegen.png')
sha256sums=('48144b8d2f309f4324a85fcd7261244581678fb438a0a49f3a84b8ffcf07b09b'
'7f4d109a4d81e0bc970adb3f3355f422e979c33d0425e61f8e1acf126bda6ca4')
package() {
cd qrcodegen
echo "#!/bin/sh
exec /usr/bin/java -jar '/usr/share/java/qrcodegen/qrcodegen.jar' \"\$@\"" > qrcodegen
install -Dm755 QRCodeGen.jar "${pkgdir}/usr/share/java/qrcodegen/qrcodegen.jar"
install -Dm755 qrcodegen "${pkgdir}/usr/bin/qrcodegen"
install -Dm644 ${srcdir}/qrcodegen.png -t "${pkgdir}/usr/share/pixmaps"
gendesk -f -n --pkgname "${pkgname%-java}" \
--pkgdesc "$pkgdesc" \
--name "QR-Code Generator" \
--comment "$pkgdesc" \
--exec "${pkgname%-java}" \
--categories 'Utility;Application' \
--icon "${pkgname%-java}"
install -Dm644 "${pkgname%-java}.desktop" -t "${pkgdir}/usr/share/applications"
}
|