mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
aur/python-pyuv per request
This commit is contained in:
parent
4bd4c9d033
commit
0572b3b54d
1 changed files with 31 additions and 0 deletions
31
aur/python-pyuv/PKGBUILD
Normal file
31
aur/python-pyuv/PKGBUILD
Normal 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')
|
Loading…
Reference in a new issue