blob: a5cf361841548a326989ad265ba2aec922fd1a2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: TurboHsu <hsuturbo@outlook.com>
pkgname=munager-git
_pkgname=munager
pkgrel=2
pkgver=0.1.1.r1.g3bbc577
pkgdesc="Music managing utils which can fetch lyrics and do syncs."
arch=('any')
url="https://github.com/TurboHsu/munager"
license=('Apache')
makedepends=('git' 'go')
provides=('munager')
source=("git+${url}.git#branch=main")
pkgver() {
cd "${srcdir}"/"${_pkgname}"/
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}"/"${_pkgname}"/
go build -ldflags="-s -w -linkmode external -extldflags \"${LDFLAGS}\"" \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
.
}
package() {
cd "${srcdir}"/"${_pkgname}"/
install -Dm 755 munager -t "${pkgdir}"/usr/bin
}
sha256sums=('SKIP')
|