blob: 12d579c47d72bbbc42fa1b40d412833cb4b018f3 (
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
|
# Maintainer Edouard Jubert <edouard.jubert@gmail.com>
pkgname=gophrland
pkgver=0.0.9
pkgrel=1
pkgdesc='Gophrland is a set of tools to manage windows on Hyprland.'
arch=('x86_64')
url="https://github.com/edjubert/$pkgname"
license=('GPL')
makedepends=('go')
source=("https://codeload.github.com/edjubert/$pkgname/tar.gz/refs/tags/v$pkgver")
sha256sums=('5f8023c1c0d4af6e0659cb480872a63970f32b7bb2a6d32c94ef6fa46da09949')
prepare() {
cd "$pkgname-$pkgver"
mkdir -p build/
}
build() {
cd "$pkgname-$pkgver"
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 build ./cmd/...
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
}
|