summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/python-xattr-git/PKGBUILD30
-rw-r--r--pcr/python-xattr/PKGBUILD31
-rw-r--r--pcr/python2-xattr/PKGBUILD28
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
-}