desktop/python-pyxattr/PKGBUILD

30 lines
831 B
Bash
Raw Normal View History

2014-01-27 00:28:39 +08:00
pkgbase=python-pyxattr
2014-06-06 19:03:18 +08:00
pkgname=('python2-pyxattr' 'python3-pyxattr')
2014-01-27 00:28:39 +08:00
_pkgname=pyxattr
2017-02-13 21:06:54 +08:00
pkgver=0.6.0
2017-11-01 06:04:26 +08:00
pkgrel=2
2014-01-27 00:28:39 +08:00
pkgdesc='A python extension module that allows you to manipulate the extended attributes.'
arch=('x86_64')
url='http://pyxattr.k1024.org/'
license=('GPL')
makedepends=('python2' 'python3' 'python2-setuptools' 'python3-setuptools')
source=("http://pyxattr.k1024.org/downloads/pyxattr-$pkgver.tar.gz")
2017-02-13 21:06:54 +08:00
sha1sums=('3fd86e194795b049a46045abf24719a13e36ec42')
2014-01-27 00:28:39 +08:00
package_python2-pyxattr() {
depends=('python2')
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}"
}
package_python3-pyxattr() {
depends=('python3')
2014-01-30 06:23:12 +08:00
replaces=('python-pyxattr')
conflicts=('python-pyxattr')
provides=('python-pyxattr')
2014-01-27 00:28:39 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}"
2014-01-29 07:02:45 +08:00
python3 setup.py install --root="${pkgdir}"
2014-01-27 00:28:39 +08:00
}