blob: 1c6bef8904d8d2f226101ad1581ceed5ab8acf7a (
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
34
35
|
# Maintainer: Nicholas Boyd Isacsson <nicholas@isacsson.se>
pkgname=waybar-mpris-git
_pkgname=waybar-mpris
pkgver=r29.937769e
pkgrel=1
pkgdesc='MPRIS2 waybar component'
arch=('any')
url="https://git.hrfee.pw/hrfee/$_pkgname"
license=('unknown')
depends=('glibc')
makedepends=('go' 'git')
source=(git+$url)
md5sums=(SKIP)
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "$_pkgname"
go build
}
package() {
cd "$_pkgname"
install -vDm 755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
}
|