~dricottone/huttese-apk

ref: 6c2a5f2846b53607db556feae2e7d777ab947e77 huttese-apk/sr.ht/py3-colour/APKBUILD -rw-r--r-- 1.2 KiB
6c2a5f28 — Drew DeVault pkgkit: fix oversight with unset REPOSITORY 2 years ago
                                                                                
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
38
39
40
41
42
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-colour
_pyname=colour
pkgver=0.1.5
pkgrel=7
pkgdesc="Colour representations manipulation library (RGB, HSL, web, ...)"
url="https://github.com/vaab/colour"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-wheel"
_pypiprefix="${_pyname%${_pyname#?}}"
source="
	https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
	setup.cfg
	setup.py
"
builddir="$srcdir/$_pyname-$pkgver"

prepare() {
	# I hate the Python community so much
	cp "$srcdir"/setup.py ./
	cp "$srcdir"/setup.cfg ./
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="
09a5160862bf10cd5f4a94e43c63d6f2a5db43bcaae0e9d8f66900113ec04471e22d0bec7412f0289c6f1e6871c1a544f5be36266aa8d6fd5ec274bd461d9df8  colour-0.1.5.tar.gz
6e0c52b0515ae82ee10116d567c60e4b81c78e2e94da17ddac5b6bd58641bee3682dfbdddb04398d536b96f54708dad749cc323bcce1d6921849c92ce1abc67e  setup.cfg
1b89dee1b34668e78c8115f297e2a68af48cfbef820694f6f0771fa07292c480d1fa2d52ddecd4989850ec3a0a34a25a08965bfa31baa20728935f60e38d1588  setup.py
"