From 469ae0ea26d79f85f94a85fb5569f805d62e3a2d Mon Sep 17 00:00:00 2001 From: JustAnyone Date: Sat, 7 Feb 2026 16:00:40 +0200 Subject: [PATCH] Add tt-build package --- tt-build-git/.SRCINFO | 19 +++++++++++++++++++ tt-build-git/.gitignore | 4 ++++ tt-build-git/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 tt-build-git/.SRCINFO create mode 100644 tt-build-git/.gitignore create mode 100644 tt-build-git/PKGBUILD diff --git a/tt-build-git/.SRCINFO b/tt-build-git/.SRCINFO new file mode 100644 index 0000000..3062786 --- /dev/null +++ b/tt-build-git/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = tt-build-git + pkgdesc = A tool to produce optimized plugin archives for TheoTown. + pkgver = r5.5df3574 + pkgrel = 1 + url = https://github.com/JustAnyones/tt-build + arch = any + license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + makedepends = git + depends = python + provides = tt-build + conflicts = tt-build + source = git+https://github.com/JustAnyones/tt-build.git + md5sums = SKIP + +pkgname = tt-build-git diff --git a/tt-build-git/.gitignore b/tt-build-git/.gitignore new file mode 100644 index 0000000..713f6f8 --- /dev/null +++ b/tt-build-git/.gitignore @@ -0,0 +1,4 @@ +/* +!/.gitignore +!/.SRCINFO +!/PKGBUILD diff --git a/tt-build-git/PKGBUILD b/tt-build-git/PKGBUILD new file mode 100644 index 0000000..9fd9fdf --- /dev/null +++ b/tt-build-git/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Dominykas Svetikas +pkgname=tt-build-git +_pkgname=tt-build +pkgver=r5.5df3574 +pkgrel=1 +pkgdesc='A tool to produce optimized plugin archives for TheoTown.' +arch=('any') +url='https://github.com/JustAnyones/tt-build' +license=('MIT') +depends=('python') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'git') +conflicts=('tt-build') +provides=('tt-build') +source=("git+$url.git") +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} + +build() { + cd "$_pkgname" + python -m build --wheel --no-isolation +} + +package() { + cd "$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl +}