blob: 990a1e70c608ad897432e0faf7deb47eaf5b99c0 (
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
36
|
# Maintainer: YaNing Lu <dluyaning@gmail.com>
pkgname=wlhax
pkgver=0.0.1.20240318
pkgrel=1
pkgdesc="Wayland proxy that monitors and displays various application state in a TUI"
arch=('x86_64')
url="https://git.sr.ht/~kennylevinsen/wlhax"
license=('MIT')
depends=('wayland')
makedepends=('go' 'git')
_commit=10b42941847f11a43dceaf8bf449301056c71f3b # 使用最新的 commit hash
source=("git+https://git.sr.ht/~kennylevinsen/wlhax#commit=${_commit}")
sha256sums=('SKIP')
prepare() {
cd "$pkgname"
}
build() {
cd "$pkgname"
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"
go build -o wlhax
}
package() {
cd "$pkgname"
install -Dm755 wlhax "$pkgdir/usr/bin/wlhax"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|