Add tt-build package
This commit is contained in:
19
tt-build-git/.SRCINFO
Normal file
19
tt-build-git/.SRCINFO
Normal file
@@ -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
|
||||
4
tt-build-git/.gitignore
vendored
Normal file
4
tt-build-git/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*
|
||||
!/.gitignore
|
||||
!/.SRCINFO
|
||||
!/PKGBUILD
|
||||
30
tt-build-git/PKGBUILD
Normal file
30
tt-build-git/PKGBUILD
Normal file
@@ -0,0 +1,30 @@
|
||||
# Maintainer: Dominykas Svetikas <dominykas@svetikas.lt>
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user