summaryrefslogtreecommitdiff
path: root/community/python-pyxattr/PKGBUILD
blob: 6316dbe6c980cb993c15e092a4f1cb70c0ca8577 (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 54628 2011-08-22 08:01:47Z lfleischer $
# 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=2
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}"
}