diff options
author | Kimiblock Moe | 2024-03-31 12:32:00 +0800 |
---|---|---|
committer | Kimiblock Moe | 2024-03-31 12:32:00 +0800 |
commit | abd4d8c34b4387885f3f4ed89e2cf4e1660aac0b (patch) | |
tree | 0b4a7c54560827eccba5826910256b4378c72f8a /PKGBUILD | |
download | aur-python-amulet-core-git.tar.gz |
Initial Commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6aa177dd6f47 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Kimiblock Moe + +pkgname=python-amulet-core-git +pkgdesc="A Python library for reading and writing the Minecraft save formats. See Amulet for the actual editor." +url="https://github.com/Amulet-Team/Amulet-Core" +license=(unknown) +arch=(any) +pkgver=1.9.21.r3.g5fc5bb50 +pkgrel=1 +makedepends=(python-build python-installer python-wheel git) +depends=(python python-amulet-nbt python-numpy python-pymctranslate python-versioneer python-portalocker python-leveldb python-amulet-leveldb) +provides=(python-amulet-core) +conflicts=(python-amulet-core) + +source=( + "git+https://github.com/Amulet-Team/Amulet-Core.git" +) +md5sums=( + "SKIP" +) + +function pkgver(){ + cd "${srcdir}/Amulet-Core" + git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +function prepare() { + sed -i 's/versioneer-518/versioneer/g' "${srcdir}/Amulet-Core/pyproject.toml" +} + +function build() { + cd "${srcdir}/Amulet-Core" + python -m build --wheel --no-isolation +} + +function package() { + cd "${srcdir}/Amulet-Core" + python -m installer --destdir="${pkgdir}" dist/*.whl +} |