random-stuff/PKGBUILDs/stmps/PKGBUILD

34 lines
749 B
Bash
Raw Normal View History

2024-12-17 14:14:14 +05:00
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"
}