# Maintainer: Jesus E. _pkgbase=pyxdg pkgbase=python-pyxdg pkgname=('tauthon-pyxdg' 'python-pyxdg') pkgver=0.27 pkgrel=3 pkgdesc="Library to access freedesktop.org standards" arch=('any') url='http://freedesktop.org/Software/pyxdg' license=('LGPL-2') makedepends=('tauthon-setuptools' 'python-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgbase::1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz") sha512sums=('acb24153a4e3e0d8333f1c965c024b15d44f623497b561fc0e9be60d4411441af1dc61f11dcfb22587a510451237a341440bf7ff77a6ab6446dceb83b3c380e2') package_tauthon-pyxdg() { pkgdesc+=" (Tauthon)" depends=('tauthon') cd "${srcdir}/${_pkgbase}-${pkgver}" tauthon setup.py install --prefix=/usr --root="${pkgdir}" install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname" } package_python-pyxdg() { pkgdesc+=" (Python)" depends=('python') cd "${srcdir}/${_pkgbase}-${pkgver}" python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname" }