summaryrefslogtreecommitdiff
path: root/pcr/python2-xattr
diff options
context:
space:
mode:
authoraurelien <aurelien@xload.io>2014-05-31 23:55:22 +0200
committeraurelien <aurelien@xload.io>2014-05-31 23:55:22 +0200
commit81328e893644f696d8a2be165071f6b083b45239 (patch)
tree49eccc7c7c0e3a2e81965e54fb6af8168a35f5c7 /pcr/python2-xattr
parentdbe274410893121927b09bb50b663c32520babb0 (diff)
python2-xattr
Diffstat (limited to 'pcr/python2-xattr')
-rw-r--r--pcr/python2-xattr/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/python2-xattr/PKGBUILD b/pcr/python2-xattr/PKGBUILD
new file mode 100644
index 000000000..8f0fb1bca
--- /dev/null
+++ b/pcr/python2-xattr/PKGBUILD
@@ -0,0 +1,28 @@
+# 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
+}