summaryrefslogtreecommitdiff
path: root/yubikey-personalization-gui/Pkgfile
blob: 3b5adeaec20477f49b5f0c9a8876785c844e936b (plain)
    1 # Description: Yubico YubiKey Personalization GUI
    2 # URL: https://github.com/Yubico/yubikey-personalization-gui
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: imagemagick qt5 yubikey-personalization
    5 
    6 name=yubikey-personalization-gui
    7 version=3.1.25
    8 release=1
    9 source=(https://github.com/Yubico/yubikey-personalization-gui/archive/$name-$version.tar.gz)
   10 
   11 build() {
   12   cd $name-$name-$version
   13   /usr/lib/qt5/bin/qmake
   14   make
   15   install -D -m0755 build/release/$name $PKG/usr/bin/yubikey-personalization-gui
   16   install -D -m0644 resources/lin/$name.1 $PKG/usr/share/man/man1/yubikey-personalization-gui.1
   17   install -D -m0644 resources/lin/$name.desktop $PKG/usr/share/applications/$name.desktop
   18   install -D -m0644 resources/lin/$name.png $PKG/usr/share/icons/hicolor/128x128/apps/$name.png
   19   for SIZE in 16 24 32 48 64 96; do
   20     convert -scale ${SIZE} +set date:create +set date:modify \
   21     resources/lin/$name.png \
   22     $SRC/$name.png
   23     install -D -m0644 $SRC/$name.png $PKG/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/$name.png
   24   done
   25 }

Generated by cgit