diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3eba41fb5ff4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Adrien Smith <adrien at bouldersmiths dot com> +pkgname=overmind +pkgver=2.0.2 +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-pie") +conflicts=("$pkgname-bin" "$pkgname-git") +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha512sums=('c38e9651ddc12aa3cfdb86a7030c55cd2c71a98f17c0ef6f959da52971224c658a60c2facf1f9068f776b3bd9764f3955ae362fce2593efa39e482ee38db95af') + +build() { + cd "$pkgname-$pkgver" + go build \ + -gcflags "all=-trimpath=$PWD" \ + -asmflags "all=-trimpath=$PWD" \ + -ldflags "-s -w -extldflags $LDFLAGS" \ + -o $pkgname . +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |