blob: f11a4880e52749fe523a0e85efe39dd4a534d0d6 (
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
37
38
|
# Maintainer: Piotr Miller <nwg.piotr@gmail.com>
# Project: nwg-shell for sway, https://github.com/nwg-piotr/nwg-shell
pkgname=('gopsuinfo')
pkgver=0.1.6
pkgrel=1
pkgdesc="A gopsutil-based command to display customizable system info, intended for nwg-panel or Tint2"
arch=('x86_64')
url="https://github.com/nwg-piotr/gopsuinfo"
license=('MIT')
provides=('gopsuinfo')
conflicts=('gopsuinfo' 'gopsuinfo-git' 'gopsuinfo-bin')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/nwg-piotr/gopsuinfo/archive/v"$pkgver".tar.gz")
md5sums=('809eab8d9a3b52942ae1c84254ca7192')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"
export GOPATH="${srcdir}"/go
export PATH=$PATH:$GOPATH/bin
go build -o bin/"$pkgname" *.go
}
package() {
cd "$srcdir"
install -D -t "$pkgdir"/usr/share/"$pkgname"/icons_light "$pkgname"-"$pkgver"/icons_light/*
install -D -t "$pkgdir"/usr/share/"$pkgname"/icons_dark "$pkgname"-"$pkgver"/icons_dark/*
install -Dm755 -t "$pkgdir"/usr/bin "$pkgname"-"$pkgver"/bin/"$pkgname"
cd "$srcdir/$pkgname-$pkgver"
install -D -t "$pkgdir"/usr/share/licenses/"$pkgname" LICENSE
install -D -t "$pkgdir"/usr/share/doc/"$pkgname" README.md
}
|