blob: feada4a76ded18011632e29e2a439afafbb7380c (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=yubikey-personalization-gui-git
pkgver=3.1.24.r3.g99fc66d
pkgrel=1
pkgdesc='Yubico YubiKey Personalization GUI - git checkout'
arch=('i686' 'x86_64')
url='https://github.com/Yubico/yubikey-personalization-gui'
license=('BSD')
depends=('yubikey-personalization' 'qt5-base' 'libxkbcommon-x11')
makedepends=('git' 'imagemagick')
provides=('yubikey-personalization-gui' 'yubikey-personalization-tool')
conflicts=('yubikey-personalization-gui' 'yubikey-personalization-tool')
source=('git://github.com/Yubico/yubikey-personalization-gui.git')
sha256sums=('SKIP')
pkgver() {
cd yubikey-personalization-gui/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
else
echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
fi
}
build() {
cd yubikey-personalization-gui/
qmake-qt5 "CONFIG += debian"
make
}
check() {
cd yubikey-personalization-gui/
make check
}
package() {
cd yubikey-personalization-gui/
install -D -m0755 build/release/yubikey-personalization-gui "${pkgdir}/usr/bin/yubikey-personalization-gui"
install -D -m0644 resources/lin/yubikey-personalization-gui.1 "${pkgdir}/usr/share/man/man1/yubikey-personalization-gui.1"
install -D -m0644 resources/lin/yubikey-personalization-gui.desktop "${pkgdir}/usr/share/applications/yubikey-personalization-gui.desktop"
install -D -m0644 resources/lin/yubikey-personalization-gui.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/yubikey-personalization-gui.png"
for SIZE in 16 24 32 48 64 96; do
convert -scale ${SIZE} \
resources/lin/yubikey-personalization-gui.png \
${srcdir}/yubikey-personalization-gui.png
install -D -m0644 ${srcdir}/yubikey-personalization-gui.png "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/yubikey-personalization-gui.png"
done
install -D -m0644 COPYING "${pkgdir}/usr/share/licenses/yubikey-personalization-gui/COPYING"
install -D -m0644 README "${pkgdir}/usr/share/doc/yubikey-personalization-gui/README"
}
|