aur/python-pyuv per request

This commit is contained in:
Mike Brown 2013-04-03 08:06:23 -04:00
parent 4bd4c9d033
commit 0572b3b54d

31
aur/python-pyuv/PKGBUILD Normal file
View file

@ -0,0 +1,31 @@
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=python-pyuv
pkgver=0.10.0
pkgrel=1
_libname=${pkgname/python-/}
pkgdesc="A Python module which provides an interface to libuv."
url="https://crate.io/packages/pyuv/"
license=('MIT')
arch=('i686' 'x86_64')
depends=('python')
makedepends=('libuv')
source=("$_libname-$pkgver.tar.gz::https://github.com/saghul/pyuv/archive/release-$pkgver.tar.gz")
build() {
cd "$srcdir/$_libname-release-$pkgver"
rm -f "deps/libuv/libuv.a"
mkdir -p deps/libuv
ln -s /usr/lib/libuv.a deps/libuv/
ln -s /usr/include/libuv deps/libuv/include
python setup.py build_ext --inplace --force
}
package() {
cd "$srcdir/$_libname-release-$pkgver"
python setup.py install --root="$pkgdir"
install -m0644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha256sums=('18c97c0612bce7ee313c4b2b7e85a025bb57daa2ffd95f0e900e5e87f4287983')