From 4e7f8a85f889ee8d068f92b322163da1bb06ac7b Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Fri, 22 Sep 2023 23:02:25 -0500 Subject: [PATCH] Add AUR PKGBUILD --- aur/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 aur/PKGBUILD diff --git a/aur/PKGBUILD b/aur/PKGBUILD new file mode 100644 index 0000000..7be19f2 --- /dev/null +++ b/aur/PKGBUILD @@ -0,0 +1,34 @@ +pkgname=worldsterm-git +pkgver=0.1.0.r1.g8e9e500 +pkgrel=1 +pkgdesc='A terminal-based Worlds.com client' +arch=('any') +url='https://git.worlio.com/Wirlaburla/WorldsTerminal' +depends=('ncurses') +makedepends=('git' 'cmake') +provides=('worldsterm') +conflicts=('worldsterm') +source=("$pkgname::git+ssh://gitea@worlio.com:7365/Wirlaburla/WorldsTerminal.git#branch=master") +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd $pkgname +} + +build() { + cd $pkgname + mkdir -p build; cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + .. +} + +package() { + cd $pkgname/build + make install DESTDIR="$pkgdir" +}