summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19b132b887a8cc22d46b11ae282d981528f706c6 (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
39
40
41
# Contributor: timescam <rex.ky.ng at gmail dot com>
# Maintainer: m8D2 <omui (at) proton mail (dot) com>

pkgname=zentile
pkgver=0.1.1
pkgrel=2
pkgdesc="On-demand tiling for Openbox, Xfce and other EWMH Complaint Window Managers."
arch=(x86_64)
url="https://github.com/blrsn/$pkgname"
license=(MIT)
depends=(go)
optdepends=('xorg-server: with EWMH Complaint Window Managers')
provides=(zentile)
conflicts=(bin32-zentile zentile-bin zentile-git)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('d6963f61884cac7233d4fdb2ec53e8d3ff146bd274829220b3d1d2bd449c7732')

prepare(){
  cd "$pkgname-$pkgver"
}

build() {
  cd "$pkgname-$pkgver"
  export GOPATH="$srcdir"
  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 get
}

check() {
  cd "$pkgname-$pkgver"
  go test ./...
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm755 "$srcdir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}