summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35a1e69a9bae0259e158a096a2943daf11e6d93d (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
29
30
31
32
33
34
35
36
37
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=python-skia-git
_pkgname=skia-python
pkgver=132.b11.r0.gdb7d7fc
pkgrel=1
pkgdesc='Python binding to Skia Graphics Library (wheel)'
arch=(x86_64)
url="https://github.com/kyamagu/$_pkgname"
license=(BSD-3-Clause)
depends=(fontconfig
         opengl-driver
         python
         skia)
makedepends=(git
             python-{build,installer,wheel})
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
_archive="$_pkgname-$pkgver"
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --long --abbrev=7 --tags --match="v*" HEAD |
		sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$_pkgname"
	python -m build -wn
}

package() {
	cd "$_pkgname"
	python -m installer -d "$pkgdir" dist/*.whl
}