summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19a4f333d5fde003e37f0ce1c09b7e67ab2e6e3d (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
# Maintainer: Kimiblock Moe

pkgname=python-amulet-compiler-target
pkgdesc="A token library to pin compile-time requirements"
url="https://github.com/Amulet-Team/Amulet-Compiler-Target"
license=("LicenseRef-Amulet-Team-License")
arch=(any)
pkgver=2.0
pkgrel=1
makedepends=(python-setuptools git python-wheel python-build python-installer)
depends=(python)
source=(
	"git+https://github.com/Amulet-Team/Amulet-Compiler-Target.git#tag=${pkgver}"
)
md5sums=('85c55ed1c7f26ac0f4c0fba47f1e42e2')

function prepare() {
	cd "${srcdir}/Amulet-Compiler-Target"
	git submodule init
	git submodule update
}

function build() {
	cd "${srcdir}/Amulet-Compiler-Target"
	#python setup.py build
	python -m build --wheel --no-isolation
}

function package() {
	cd "${srcdir}/Amulet-Compiler-Target"
	#python setup.py install --root="$pkgdir" --optimize=1
	python -m installer --destdir="$pkgdir" dist/*.whl
}