diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-02 12:31:35 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-02 12:31:35 -0500 |
commit | 760a84453fb0c222c9ce5e8b0307b03ff7b3ea95 (patch) | |
tree | b6b8da8768e6a0cf62532e95e1065e0e013c078b /pcr | |
parent | 86c3f0a7c46ad1a6a4ec63657ae35c60145b2d5f (diff) | |
download | abslibre-760a84453fb0c222c9ce5e8b0307b03ff7b3ea95.tar.gz abslibre-760a84453fb0c222c9ce5e8b0307b03ff7b3ea95.tar.bz2 abslibre-760a84453fb0c222c9ce5e8b0307b03ff7b3ea95.zip |
python-xattr-git-93.ab5d7cb-1: updating version
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python-xattr-git/PKGBUILD | 30 | ||||
-rw-r--r-- | pcr/python-xattr/PKGBUILD | 31 | ||||
-rw-r--r-- | pcr/python2-xattr/PKGBUILD | 28 |
3 files changed, 30 insertions, 59 deletions
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 <aurelien@cwb.IO> + +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 <aurelien@cwb.IO> - -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 <luolimao+AUR@gmail.com> -# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp> - -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 -} |