summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dffdbdea62b43e68809bd434df6bc9cd992ec0df (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
#!/hint/bash -e
# Maintainer: Adrien Smith <adrien@panissupraomnia.dev>

pkgname=overmind
pkgver=2.3.0
pkgrel=1
pkgdesc="Process manager for Procfile-based applications and tmux"
arch=("x86_64")
url="https://github.com/DarthSim/$pkgname"
license=("MIT")
depends=('tmux')
makedepends=("go")
conflicts=("$pkgname-bin" "$pkgname-git")
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('ea0b200ac4954846739b9bc771783d62a5b0018ef133b9898c0156d346656163ae41bc7e8f4d8d4ccf9e01aa79e5e8a9e47cda64ea66faf554141b3dfad9a3e1')
b2sums=('4d088231210d534a5bab8fbb597c788efe75b2d5995fd439ebb8509994f715fa129ed23a0215e0c6495219b05c318f2a10c5cdcdaea8f19da6c531781e56f09e')

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 $pkgname .
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}