blob: 6aa177dd6f4783b6848226217c6fa73f00f44f2e (
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
|
# 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
}
|