# Maintainer: Kimiblock Moe

pkgname=python-amulet-compiler-version
pkgdesc="A tiny library to allow dependencies to require the same compiler"
url="https://github.com/Amulet-Team/Amulet-Compiler-Version"
license=("LicenseRef-Amulet-Team-License")
arch=(any)
pkgver=4.0.2
pkgrel=1
makedepends=(python-setuptools git python-wheel cmake)
depends=(python)
source=(
	"git+https://github.com/Amulet-Team/Amulet-Compiler-Version.git#tag=${pkgver}"
)
md5sums=('5d6f6c57fac11b8d963dacdbbdcb00ce')

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

function build() {
	cd "${srcdir}/Amulet-Compiler-Version"
	python setup.py build
}

function package() {
	cd "${srcdir}/Amulet-Compiler-Version"
	python setup.py install --root="$pkgdir" --optimize=1
}
