summaryrefslogtreecommitdiff
path: root/community-testing/python-pyxattr/PKGBUILD
blob: a60dc386c8f850f8eeeb1087e37ef25176fe54d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 78107 2012-10-16 11:53:42Z allan $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Jon Bergli Heier <snakebite@jvnv.net>

pkgname=('python2-pyxattr' 'python-pyxattr')
pkgbase=python-pyxattr
_pkgname=pyxattr
pkgver=0.5.0
pkgrel=4
pkgdesc='A python extension module that allows you to manipulate the extended attributes.'
arch=('i686' 'x86_64')
url='http://pyxattr.sourceforge.net/'
license=('GPL')
makedepends=('python2' 'python' 'python2-distribute' 'python-distribute')
source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
md5sums=('0f7ab1e185087329e40f7de218517c84')

package_python2-pyxattr() {
  depends=('python2')
  provides=('pyxattr')
  conflicts=('pyxattr')
  replaces=('pyxattr')

  cd "${srcdir}/${_pkgname}-${pkgver}"
  python2 setup.py install --root="${pkgdir}"
}

package_python-pyxattr() {
  depends=('python')

  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}"
}