blob: 4b10dd9bc8555d225a3878736d0b8b69ee5a2aeb (
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
42
43
|
# 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.39
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=(
"SKIP"
"SKIP"
"SKIP"
)
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
}
|