blob: 294465f9c5793f12b2000f20f3c26abb3f598cdc (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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-custom)
arch=(any)
pkgver=0.10.63
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-amulet-fault-handler
python-pymctranslate
python-minecraft-model-reader
python-amulet-core
python-lz4
python-amulet-leveldb
python-pillow
glibc
hicolor-icon-theme
python-platformdirs
python-amulet-rocksdb
)
source=(
amulet.desktop
"git+https://github.com/Amulet-Team/Amulet-Map-Editor.git#tag=${pkgver}"
)
sha256sums=('724383fa0a28be2ab92785365b7a3695aae5ee7849fc7841b492da73ce60c829'
'e367bcc0baab3c88dec78d2ba270c8da6de13947cfc0aea6519d1299008916fa')
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"
cd "${srcdir}/Amulet-Map-Editor"
git clean -fdx
}
function build() {
cd "${srcdir}/Amulet-Map-Editor"
python -m build --wheel --no-isolation
}
function package() {
install -Dm755 "${srcdir}/Amulet-Map-Editor/amulet_map_editor/api/image/logo/amulet_logo.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
rm -rf "${pkgdir}/usr/bin/amulet_map_editor_no_console"
install -vDm644 "${srcdir}/Amulet-Map-Editor/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}"
}
|