summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e2e7319b8ebd6dcb2d99f32594ce479ca82fc63 (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
# Maintainer: Kimiblock Moe

pkgname=python-amulet-rocksdb
pkgdesc="A pybind11 wrapper for RocksDB."
license=(custom)
arch=(any)
pkgver=1.0.4
pkgrel=1
options+=(lto)
url="https://github.com/Amulet-Team/Amulet-RocksDB"
makedepends=(python-build python-installer python-wheel python-setuptools python-versioneer python-packaging git cmake)
depends=(python pybind11 python-amulet_pybind11_extensions)
source=(
	"source"::"git+$url.git#tag=${pkgver}"
)
md5sums=('f9684ccc5338acbb9f21dda2e780c111')

function prepare() {
	cd source
	git clean -fdx
#	sed -i 's/versioneer-518/versioneer/g' "${srcdir}/Minecraft-Model-Reader-${pkgver}/pyproject.toml"
	sed -i 's|{PYBIND11_REQUIREMENT}||g' requirements.py
}

function build() {
	cd "source"
	python -m build --wheel --no-isolation
}

function package() {
	cd "source"
	python -m installer --destdir="${pkgdir}" dist/*.whl
}