blob: 144dc18f7b20b346ca70f7e4505013cdc97932a1 (
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
40
41
|
# Maintainer: Kimiblock Moe
pkgname=amulet-map-editor
pkgdesc="The new age Minecraft world editor and converter that supports every version since Java 1.12 and Bedrock 1.7"
url="https://www.amuletmc.com/"
license=(LicenseRef-none MIT)
arch=(any)
pkgver=0.10.42
pkgrel=1
makedepends=(python-build python-installer python-wheel python-cython-lint python-versioneer git python-packaging)
depends=(python python-numpy python-wxpython python-opengl python-amulet-nbt python-pymctranslate python-minecraft-model-reader python-amulet-core python-lz4 python-amulet-leveldb python-pillow glibc hicolor-icon-theme python-platformdirs)
source=(
amulet.desktop
icon.png
"git+https://github.com/Amulet-Team/Amulet-Map-Editor.git#tag=${pkgver}"
)
sha256sums=('7953b5309ad3a3577898b3f2463202be7e7039674a94ee5e0f3c36ff23293c70'
'dcfa7b2bce1cf5b21b219171f727ce3b31cb1290bd28d2b1102cb693bc7629fe'
'f897f741666a57addb74f4ae6f51a6f5b0a591ba4d2d90b101afd82d50e8a846')
function prepare() {
sed -i 's/versioneer-518/versioneer/g' "${srcdir}/Amulet-Map-Editor/pyproject.toml"
sed -i 's|numpy ~= 1.17|numpy|g' "${srcdir}/Amulet-Map-Editor/pyproject.toml"
}
function build() {
cd "${srcdir}/Amulet-Map-Editor"
python -m build --wheel --no-isolation
}
function package() {
install -Dm755 "${srcdir}/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/amulet.png"
install -Dm644 "${srcdir}/amulet.desktop" "${pkgdir}/usr/share/applications/amulet.desktop"
cd "${srcdir}/Amulet-Map-Editor"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|