summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea65b33c17dcd6a171fc29495d6c132c1d19da77 (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
# Maintainer: Gustavo Chain <gchain@gmail.com>
pkgname=httplab
pkgver=0.1
pkgrel=2
pkgdesc="An interactive web server"
arch=(any)
url="http://github.com/gchaincl/httplab"
license=('MIT')
makedepends=('go>=1.7')
provides=('httplab=$pkgver')
conflicts=('httplab')
replaces=('httplab')
install=
source=("$pkgname"::'git+https://github.com/gchaincl/httplab.git')
md5sums=(SKIP)

build() {
	export GOPATH=`pwd`/..
	cd "$pkgname"
	go build
}

package() {
	cd "$pkgname"
	install -D -s -m755 httplab "${pkgdir}/usr/bin/httplab"
}