blob: 8f0fb1bca6a8327168fd5615af32374819e7c340 (
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
|
# 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
}
|