blob: d4bfea914281e57d57f9e629f88a35bb377f8554 (
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
38
39
40
41
42
43
44
45
46
47
  | 
# Maintainer: tblFlip <root@tblflip.de>
pkgname=python-vtf2img
pkgver=0.1.0
pkgrel=1
pkgdesc="A Python library to convert Valve Texture Format (VTF) files to images"
_name=${pkgname#python-}
# Since the repo does not have any tags
_commit_hash="6db0178d69b7b141279078cb3576d4d1f79ad567"
arch=(any)
url="https://github.com/julienc91/$_name"
license=("MIT")
depends=(
	python
	python-pillow
)
makedepends=(
	python-build
	python-installer
	python-setuptools
	python-wheel
)
source=(
	"${pkgname}-$pkgver.tar.gz::$url/archive/$_commit_hash.tar.gz"
	"LICENSE::https://raw.githubusercontent.com/julienc91/$_name/$_commit_hash/LICENSE"
)
sha256sums=(
	"93d6b946032853b0055ff961d5c3784d8442e026a987578a3eeb33fa2e9cde10"
	"6856f0af62e72b7bf3246e97faad2a6b4bc926914cd52888af9526aceb74e335"
)
build() {
	cd $_name-$_commit_hash
	python -m build --wheel --no-isolation
}
package() {
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	cd $_name-$_commit_hash
	python -m installer --destdir="$pkgdir" dist/*.whl
}
  |