From 8734e3d48b2b7c478121c5e1a619ef879b321c85 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 17 Dec 2024 14:14:14 +0500 Subject: [PATCH] Add custom PKGBUILD for stmps --- PKGBUILDs/stmps/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 PKGBUILDs/stmps/PKGBUILD diff --git a/PKGBUILDs/stmps/PKGBUILD b/PKGBUILDs/stmps/PKGBUILD new file mode 100644 index 0000000..9dca781 --- /dev/null +++ b/PKGBUILDs/stmps/PKGBUILD @@ -0,0 +1,33 @@ +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" +}