From 760a84453fb0c222c9ce5e8b0307b03ff7b3ea95 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sat, 2 May 2015 12:31:35 -0500 Subject: python-xattr-git-93.ab5d7cb-1: updating version --- pcr/python-xattr-git/PKGBUILD | 30 ++++++++++++++++++++++++++++++ pcr/python-xattr/PKGBUILD | 31 ------------------------------- pcr/python2-xattr/PKGBUILD | 28 ---------------------------- 3 files changed, 30 insertions(+), 59 deletions(-) create mode 100644 pcr/python-xattr-git/PKGBUILD delete mode 100644 pcr/python-xattr/PKGBUILD delete mode 100644 pcr/python2-xattr/PKGBUILD diff --git a/pcr/python-xattr-git/PKGBUILD b/pcr/python-xattr-git/PKGBUILD new file mode 100644 index 000000000..bfe42ea09 --- /dev/null +++ b/pcr/python-xattr-git/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres + +pkgname=python-xattr-git +pkgver=93.ab5d7cb +pkgrel=1 +pkgdesc="Module for manipulating filesystem extended attributes" +arch=(i686 x86_64) +url="https://github.com/xattr/xattr" +license=('MIT' 'PSF') +depends=('python' 'python-cffi') +makedepends=('git' 'python-setuptools') +provides=('python-xattr=0.7.5') +conflicts=('python-xattr') +source=("$pkgname"::'git://github.com/xattr/xattr.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +build() { + cd "$srcdir/$pkgname" + python setup.py build +} + +package() { + cd "$srcdir/$pkgname" + python setup.py install --root=${pkgdir} --prefix=/usr +} diff --git a/pcr/python-xattr/PKGBUILD b/pcr/python-xattr/PKGBUILD deleted file mode 100644 index f9b504284..000000000 --- a/pcr/python-xattr/PKGBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres - -pkgname=python-xattr -pkgver=20111028 -pkgrel=1 -pkgdesc="module for manipulating filesystem extended attributes" -arch=('i686' 'x86_64' 'mips64el') -url="http://undefined.org/python/#xattr" -license=('MIT') -conflicts=('pyattr') -provied=('pyattr') -makedepends=('setuptools') -depends=('python2' 'git') - -_gitroot=https://github.com/xattr/xattr.git -_gitname=xattr - -build() { - cd $srcdir/ - - if [ -e ${_gitname} ] ; then - cd ${_gitname} - git pull - cd .. - else - git clone ${_gitroot} ${_gitname} - fi - - cd $srcdir/xattr/ - python2 setup.py install --prefix=/usr --root=$pkgdir -} diff --git a/pcr/python2-xattr/PKGBUILD b/pcr/python2-xattr/PKGBUILD deleted file mode 100644 index 8f0fb1bca..000000000 --- a/pcr/python2-xattr/PKGBUILD +++ /dev/null @@ -1,28 +0,0 @@ -# Contributor: Limao Luo -# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES - -pkgname=python2-xattr -pkgver=0.7.4 -pkgrel=1 -pkgdesc="Module for manipulating filesystem extended attributes" -arch=(i686 x86_64) -url=https://pypi.python.org/pypi/xattr/ -license=(MIT) -depends=(python2 python2-cffi) -makedepends=(python2-setuptools) -source=(http://pypi.python.org/packages/source/x/${pkgname#*-}/${pkgname#*-}-$pkgver.tar.gz) - -prepare() { - sed -ri 's:^#!/usr/bin/(env )?python$:&2:' ${pkgname#*-}-$pkgver/${pkgname#*-}/tool.py -} - -build() { - cd ${pkgname#*-}-$pkgver/ - python2 setup.py build -} - -package() { - cd ${pkgname#*-}-$pkgver/ - python2 setup.py install --prefix=/usr --root="$pkgdir" - install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} -- cgit v1.2.3-2-g168b