mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
30 lines
831 B
Bash
30 lines
831 B
Bash
pkgbase=python-pyxattr
|
|
pkgname=('python2-pyxattr' 'python3-pyxattr')
|
|
_pkgname=pyxattr
|
|
pkgver=0.6.0
|
|
pkgrel=2
|
|
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")
|
|
sha1sums=('3fd86e194795b049a46045abf24719a13e36ec42')
|
|
|
|
package_python2-pyxattr() {
|
|
depends=('python2')
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
python2 setup.py install --root="${pkgdir}"
|
|
}
|
|
|
|
package_python3-pyxattr() {
|
|
depends=('python3')
|
|
replaces=('python-pyxattr')
|
|
conflicts=('python-pyxattr')
|
|
provides=('python-pyxattr')
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
python3 setup.py install --root="${pkgdir}"
|
|
}
|