blob: febe9124b878430f96e72255ba32b49a3111ee62 (
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: Jonhnny Weslley <jw@jonhnnyweslley.net>
pkgname=procker
pkgver=0.1.1
pkgrel=2
pkgdesc="Process management tool for Procfile-based applications"
arch=('i686' 'x86_64')
url="https://github.com/jweslley/$pkgname"
license=('MIT')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("https://github.com/jweslley/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('ba60ee6e5cd784ea131928db402b366f')
build() {
export GOPATH="$srcdir"
mkdir -p "$srcdir/src"
mv "$srcdir/$pkgname-$pkgver" "$srcdir/src/$pkgname"
cd "$srcdir/src/$pkgname"
go get ./...
go install ./...
}
package() {
cd "$srcdir/bin"
for bin in `ls`; do
install -Dm755 "$bin" "$pkgdir/usr/bin/$bin"
done
install -Dm644 "$srcdir/src/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|