blob: e556b11e33c95fea2125ae88d430a286d8c9ab04 (
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
|
# Maintainer: JakobDev<jakobdev at gmx dot de>
pkgname=python-minecraft-launcher-lib
pkgver=6.5
pkgrel=1
pkgdesc="A Python library for creating a custom minecraft launcher"
arch=("any")
url="https://codeberg.org/JakobDev/minecraft-launcher-lib"
license=("BSD")
depends=("python" "python-requests")
makedepends=("python-setuptools" "python-build" "python-installer" "python-wheel" "python-sphinx" "python-sphinx" "python-sphinx_rtd_theme" "make")
source=("${pkgname}-${pkgver}.tar.gz::https://codeberg.org/JakobDev/minecraft-launcher-lib/archive/${pkgver}.tar.gz")
sha256sums=("945f47785fa4dedcb963a16243d2215f5d9e683c5ad77453de779758fc81a5d2")
build() {
cd "minecraft-launcher-lib"
python -m build --wheel --no-isolation
cd doc
make man html
}
package() {
cd "minecraft-launcher-lib"
python -m installer --destdir "$pkgdir" dist/*.whl
install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "doc/_build/man/minecraft-launcher-lib.1" -t "${pkgdir}/usr/share/man/man1"
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
cp -r doc/_build/html/* "${pkgdir}/usr/share/doc/${pkgname}"
}
|