blob: 7374548393a9c0e99a53dc02553fdf160000e2a3 (
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
|
# Maintainer: Kimiblock Moe
pkgname=python-amulet-core
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.29
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)
source=(
"git+https://github.com/Amulet-Team/Amulet-Core.git#tag=${pkgver}"
)
md5sums=('dd115ec234fcbb77a8efc22f1e74d73f')
function prepare() {
sed -i 's/versioneer-518/versioneer/g' "${srcdir}/Amulet-Core/pyproject.toml"
sed -i 's| ~= 1.17||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
}
|