# Maintainer: M # go build command taken from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=owncast pkgname=stmps-git pkgver=v0.0.2.r286.g4a8428b pkgrel=1 pkgdesc="Stamps is a terminal client for *sonic music servers, inspired by ncmpcpp and musickube." arch=("x86_64") url="https://github.com/spezifisch/stmps" license=("GPL") conflicts=("stmps") depends=("mpv") makedepends=("go" "git") source=("${pkgname}::git+https://github.com/spezifisch/stmps.git") sha256sums=(SKIP) pkgver() { cd $pkgname git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd $pkgname go build \ -trimpath \ -buildmode=pie \ -mod=readonly \ -modcacherw \ -ldflags "-s -w -X main.version=$pkgver -linkmode external -extldflags \"${LDFLAGS}\"" \ . } package() { cd $pkgname install -Dm755 stmps "$pkgdir/usr/bin/stmps" }