aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pysendfile/APKBUILD
blob: 6b7e49320cc84d9c3bdf675b82aa4f32f3d70c3a (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pysendfile
_pkgname=pysendfile
pkgver=2.0.1
pkgrel=3
pkgdesc="Python interface to the sendfile(2) system call"
url="https://pypi.org/project/pysendfile"
arch="all"
license="MIT"
replaces="py-sendfile" # for backwards compatibility
provides="py-sendfile=$pkgver-r$pkgrel" # for backwards compatibility
depends="python3"
makedepends="python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d6ee08eb251fac30c90a9ee829fd992f3620697eef2893ced5a2c6273486c3c5fd35c70962585a8d747d578817391f91c929bfeeba8c4485d52a15748229ca9c  pysendfile-2.0.1.tar.gz"