summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c361772e32ca4040aade7900daa4d330a03de2a (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
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=python-pyuv
pkgver=1.3.0
pkgrel=2
_libname=${pkgname/python-/}
pkgdesc="A Python module which provides an interface to libuv."
url="https://pyuv.readthedocs.io/"
license=('MIT')
arch=('i686' 'x86_64')
depends=('python' 'libuv')
source=("https://github.com/saghul/pyuv/archive/$_libname-$pkgver.tar.gz")

build() {
	cd "$srcdir"/$_libname-$_libname-$pkgver
	python setup.py build_ext --use-system-libuv
}

package() {
	cd "$srcdir"/$_libname-$_libname-$pkgver
	python setup.py install --skip-build --root="$pkgdir"
	install -m0644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha256sums=('eed2ae2136f4640584328ee3de34f436ec4d149306e5d51a2565904521e22570')