summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24b3841e8b9037b87fb4119f51cef7d5b38613a5 (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: Otreblan <otreblain@gmail.com>

_name=blend-modes
pkgname="python-$_name"
pkgver=2.1.0
pkgrel=1
pkgdesc="Image processing blend modes"
arch=('any')
url="https://github.com/flrs/blend_modes"
license=('MIT')
groups=()
depends=("python-numpy")
makedepends=("python-build" "python-installer" "python-wheel")
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name/-/_}-$pkgver.tar.gz")
noextract=()
sha256sums=('0a3145e4792e005764b9663f5ce899d30f7c24f4bcff00428907d03dbe068f37')

build() {
	cd "$srcdir/${_name/-/_}-$pkgver"

	python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir/${_name/-/_}-$pkgver"

	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$_name/LICENSE"
}