Package Details: yubico-yubioath-desktop-git 725-1

Git Clone URL: https://aur.archlinux.org/yubico-yubioath-desktop-git.git (read-only)
Package Base: yubico-yubioath-desktop-git
Description: Crossplatform graphical user interface to generate one-time passwords.
Upstream URL: https://developers.yubico.com/yubioath-desktop/
Licenses: GPL
Submitter: tuftedocelot
Maintainer: tuftedocelot
Last Packager: tuftedocelot
Votes: 9
Popularity: 0.005737
First Submitted: 2014-05-08 12:38
Last Updated: 2017-09-02 12:26

Latest Comments

egrupled commented on 2017-03-23 11:53

Here is updated version. Same changes as in https://aur.archlinux.org/packages/yubico-yubioath-desktop/

# Maintainer: tuftedocelot@fastmail.fm
_pkgname=yubioath-desktop
pkgname=yubico-${_pkgname}-git
pkgver=594
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=('pcsclite' 'ccid' 'python-pyotherside' 'yubikey-manager' 'qt5-quickcontrols')
makedepends=('swig' 'qt5-svg' 'git')
validpgpkeys=('8D0B4EBA9345254BCEC0E843514F078FF4AB24C3') # Dag Heyman <dag@yubico.com>
source=("git+https://github.com/Yubico/yubioath-desktop.git"
'git+https://github.com/thp/pyotherside.git'
'git+https://github.com/Yubico/yubikey-manager.git'
'git+https://github.com/qtproject/qt-solutions')
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')

pkgver() {
cd ${_pkgname}
git rev-list --count HEAD
}

prepare() {
cd "${srcdir}/${_pkgname}"

git config --file=.gitmodules submodule.vendor/pyotherside.url ../pyotherside/
git config --file=.gitmodules submodule.vendor/yubikey-manager.url ../yubikey-manager/
git config --file=.gitmodules submodule.ykman-gui/vendor/qt-solutions.url ../qt-solutions/

git submodule init
git submodule update
}

build() {
cd "${srcdir}/${_pkgname}"

qmake-qt5 -makefile -nocache
make
}

package() {

cd "${srcdir}/${_pkgname}"

make INSTALL_ROOT="${pkgdir}/" install
install -D -m0644 resources/yubioath.desktop "${pkgdir}/usr/share/applications/yubioath.desktop"
install -D -m0644 resources/icons/yubioath.png "${pkgdir}/usr/share/pixmaps/yubioath.png"
}

tuftedocelot commented on 2017-03-16 23:24

Thanks, egrupled. I had sort of forgotten about the -git version of the package and so I never cleaned it up. Thanks for the Python 3 contribution

egrupled commented on 2017-03-15 23:52

python2-pyside is a hard dependence as most others probably too. See https://aur.archlinux.org/packages/yubico-yubioath-desktop/

Also Python 3 is supported since Version 3.0.0 see https://github.com/Yubico/yubioath-desktop/releases/tag/yubioath-desktop-3.0.0 . I checked and it builds perfectly. Here is working PKGBUILD which I made consistent with non git version. Please consider updating it:

# Maintainer: tuftedocelot@fastmail.fm
_pkgname=yubioath-desktop
pkgname=yubico-${_pkgname}-git
pkgver=371
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=('pcsclite' 'ccid' 'python-pyside' 'python-pyscard' 'python-pbkdf2' 'python-setuptools' 'python-pyside-tools' 'python-crypto' 'yubikey-personalization' 'python-click')
makedepends=('git')
source=("git+https://github.com/Yubico/yubioath-desktop.git")
md5sums=('SKIP')

pkgver() {
cd ${_pkgname}
git rev-list --count HEAD
}

package() {
mkdir -p ${pkgdir}/usr/bin
cd "$_pkgname"
git submodule init
git submodule update
python setup.py qt_resources
python setup.py install --root=${pkgdir}

sed -i '/PySide/d' ${pkgdir}/usr/lib/python3.6/site-packages/yubioath_desktop-3.1.1.dev0-py3.6.egg-info/requires.txt

mkdir -p ${pkgdir}/usr/share/applications/
install -D -m0644 ${srcdir}/yubioath-desktop/resources/yubioath.desktop ${pkgdir}/usr/share/applications/
mkdir -p ${pkgdir}/usr/share/pixmaps
install -D -m0644 ${srcdir}/yubioath-desktop/resources/yubioath.xpm ${pkgdir}/usr/share/pixmaps
}

computerfr33k commented on 2016-10-06 17:34

I can't seem to be able to launch the gui anymore. I keep getting an error about dialog not being able to be imported. Not sure if it is a missing dependency or an error in the upstream code.

Here's the error: http://pastebin.com/AJTjwFXv

geripgeri commented on 2016-06-14 06:33

Hi @tuftedocelot please modify the PKGBUILD for the new version:
sed -i '/PySide/d' ${pkgdir}/usr/lib/python2.7/site-packages/yubioath_desktop-2.3.0-py2.7.egg-info/requires.txt

To:

sed -i '/PySide/d' ${pkgdir}/usr/lib/python2.7/site-packages/yubioath_desktop-3.0.2.dev0-py2.7.egg-info/requires.txt

Thanks!

tuftedocelot commented on 2015-12-04 01:41

Updated with addl dependencies and incorporating the fix reported by halfur

computerfr33k commented on 2015-11-24 07:01

running install_scripts
Installing yubioath-cli script to /tmp/yaourt-tmp-eric/aur-yubico-yubioath-desktop-git/pkg/yubico-yubioath-desktop-git/usr/bin
Installing yubioath script to /tmp/yaourt-tmp-eric/aur-yubico-yubioath-desktop-git/pkg/yubico-yubioath-desktop-git/usr/bin
sed: can't read /tmp/yaourt-tmp-eric/aur-yubico-yubioath-desktop-git/pkg/yubico-yubioath-desktop-git/usr/lib/python2.7/site-packages/yubioath_desktop-2.2.2.dev0-py2.7.egg-info/requires.txt: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Makepkg was unable to build yubico-yubioath-desktop-git.

halfur commented on 2015-10-15 13:33

Alright, I got it running, but I had to install several missing dependencies.

I followed the advice mentioned in this issue: https://github.com/Yubico/yubioath-desktop/issues/28 added python-pyside-tools to the dependencies and inserted "python2 setup.py qt_resources" right before "python2 setup.py install --root=${pkgdir}" (Line 39). This fixed the "ImportError".

I also had to add the python2-pyusb AUR package, and had to manually start the pcscd.socket via systemctl.

tuftedocelot commented on 2015-10-06 12:19

Understood. I'll have an update for that package later on today to bring it up to date.

mazzolino commented on 2015-10-06 11:52

I switched to the non-git version (https://aur.archlinux.org/packages/yubico-yubioath-desktop/) which is working fine for me.

All comments