blob: b8a6d67b5426d63cb2285e1f69f21b4da8b6ecfd (
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
|
# Maintainer: John Downey <jdowney@gmail.com>
pkgname=smug
pkgver=0.3.5
pkgrel=1
pkgdesc='A session manager for tmux written in Go'
arch=('x86_64')
url="https://github.com/ivaaaan/smug"
license=('MIT')
makedepends=('go')
source=("https://github.com/ivaaaan/smug/archive/v${pkgver}.tar.gz")
sha256sums=('56a49f3eff84be8f7cc1c202f5223f6ceebbe5236095dcb669473d5659eba45f')
prepare(){
cd "$pkgname-$pkgver"
mkdir -p build/
}
build() {
cd "$pkgname-$pkgver"
go build -o build -buildmode=pie -trimpath -ldflags="-X=main.version=$pkgver -linkmode=external" -mod=readonly -modcacherw
}
check() {
cd "$pkgname-$pkgver"
go test
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm644 man/man1/smug.1 "$pkgdir/usr/share/man/man1/smug.1"
}
|