summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authortuftedocelot2015-07-04 15:21:57 -0500
committertuftedocelot2015-07-04 15:21:57 -0500
commit78c3df0ffea4fff1a550377b95da4024bbe37a6b (patch)
tree441c68f661b5da72d04cb73c716a0734e3c25b7a /PKGBUILD
downloadaur-78c3df0ffea4fff1a550377b95da4024bbe37a6b.tar.gz
add yubico-yubioath-desktop
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9592a83e850
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: tuftedocelot@fastmail.fm
+_pkgname=yubioath-desktop
+pkgname=yubico-${_pkgname}
+pkgver=2.1.1
+pkgrel=1
+pkgdesc="Crossplatform graphical user interface to generate one-time passwords."
+arch=('i686' 'x86_64')
+url="https://developers.yubico.com/yubioath-desktop/"
+license=('GPL')
+depends=('python2' 'pcsclite' 'ccid')
+makedepends=('git' 'python2-pyside' 'python2-pyscard-svn' 'python2-pbkdf2' 'python2-setuptools')
+source="https://github.com/Yubico/yubioath-desktop/releases/download/yubioath-desktop-2.1.1/yubioath-desktop-2.1.1.tar.gz"
+sha256sums=('8d4243311d7cbd08970d81e38616f90b851fa73939bf7ffaa91fe5c2aa2025d5')
+
+package() {
+ mkdir -p ${pkgdir}/usr/bin
+
+ cat >> "$pkgdir/usr/bin/yubicoauthenticator" <<EOF
+#!/bin/sh
+python2 /usr/lib/python2.7/site-packages/yubicoauthenticator/yubico_authenticator.py
+EOF
+ chmod +x "$pkgdir/usr/bin/yubicoauthenticator"
+
+
+ cat >> "$pkgdir/usr/bin/yubicoauthenticator-disable-systray" <<EOF
+#!/bin/sh
+python2 /usr/lib/python2.7/site-packages/yubicoauthenticator/yubico_authenticator.py --disable-systray
+EOF
+ chmod +x "$pkgdir/usr/bin/yubicoauthenticator-disable-systray"
+
+ cd "${srcdir}/$_pkgname-${pkgver}"
+ python2 setup.py install --root=${pkgdir}
+
+ mkdir -p ${pkgdir}/usr/share/applications/
+ install -D -m0644 ${srcdir}/$_pkgname-${pkgver}/resources/yubioath.desktop ${pkgdir}/usr/share/applications/
+ mkdir -p ${pkgdir}/usr/share/pixmaps
+ install -D -m0644 ${srcdir}/$_pkgname-${pkgver}/resources/yubioath.xpm ${pkgdir}/usr/share/pixmaps
+}