Trakker/aur/PKGBUILD

38 lines
721 B
Bash
Raw Permalink Normal View History

2024-02-27 22:19:41 -05:00
# Maintainer: Nick G. <wirlaburla@worlio.com>
2023-02-24 22:47:22 -05:00
pkgname=trakker-git
pkgver=0.5.2.r3.gf97e506
2023-02-24 22:47:22 -05:00
pkgrel=1
2024-02-27 22:19:41 -05:00
pkgdesc='A terminal-based tracker interface for libxmp.'
arch=('x86_64')
url='https://git.worlio.com/Wirlaburla/trakker'
license=('GPL3')
2023-02-24 22:47:22 -05:00
depends=('alsa-lib' 'libxmp' 'ncurses')
makedepends=('git' 'cmake')
provides=('trakker')
conflicts=('trakker')
2023-02-25 00:19:37 -05:00
source=("$pkgname::git+$url.git#branch=master")
2023-02-24 22:47:22 -05:00
sha256sums=('SKIP')
pkgver() {
2024-02-27 22:19:41 -05:00
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
2023-02-24 22:47:22 -05:00
}
prepare() {
cd $pkgname
}
build() {
cd $pkgname
mkdir -p build; cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
..
}
package() {
cd $pkgname/build
make install DESTDIR="$pkgdir"
}