From 98b000ff4fc7b296b8793d387efa4bec8b02ebf4 Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Fri, 24 Feb 2023 21:47:22 -0600 Subject: [PATCH] add aur PKGBUILD --- aur/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 aur/PKGBUILD diff --git a/aur/PKGBUILD b/aur/PKGBUILD new file mode 100644 index 0000000..7744f4e --- /dev/null +++ b/aur/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: wirlaburla + +pkgname=trakker-git +pkgver=0.0.1 +pkgrel=1 +pkgdesc='' +arch=('x86_64' 'aarch64') +url='https://codeberg.org/Wirlaburla/trakker' +license=(GPL3) +depends=('alsa-lib' 'libxmp' 'ncurses') +makedepends=('git' 'cmake') +provides=('trakker') +conflicts=('trakker') +source=("$pkgname::git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long --tags | cut -d- -f1-2 | sed "s/-/\./" +} + +prepare() { + cd $pkgname +} + +build() { + cd $pkgname + mkdir -p build; cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + .. +} + +package() { + cd $pkgname/build + make install DESTDIR="$pkgdir" +} + +