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

pkgname=python-amulet-io
pkgdesc="A tiny C++ header-only binary reader and writer library"
url="https://github.com/Amulet-Team/Amulet-IO"
license=("LicenseRef-Amulet-Team-License")
arch=(any)
pkgver=1.0.0
pkgrel=1
makedepends=(python-setuptools git python-wheel cmake python-versioneer)
depends=(python python-black pybind11)
source=(
	"git+https://github.com/Amulet-Team/Amulet-IO.git#tag=${pkgver}"
)
md5sums=('b41b1ac68d1bdd131c43bee5620ede12')

function prepare() {
	cd "${srcdir}/Amulet-IO"
	git submodule init
	git submodule update
}

function build() {
	cd "${srcdir}/Amulet-IO"
	python setup.py build
}

function package() {
	cd "${srcdir}/Amulet-IO"
	python setup.py install --root="$pkgdir" --optimize=1
}