Add custom PKGBUILD for stmps
This commit is contained in:
parent
df0ca1fd74
commit
8734e3d48b
1 changed files with 33 additions and 0 deletions
33
PKGBUILDs/stmps/PKGBUILD
Normal file
33
PKGBUILDs/stmps/PKGBUILD
Normal file
|
@ -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"
|
||||
}
|
Loading…
Reference in a new issue