diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 11 insertions, 5 deletions
@@ -1,10 +1,10 @@ pkgbase = sshesame-git pkgdesc = A fake SSH server that lets everyone in and logs their activity pkgver = r23.b74f93f - pkgrel = 1 + pkgrel = 2 url = https://github.com/jaksi/sshesame arch = x86_64 - license = Apache2 + license = Apache-2.0 makedepends = go source = git+https://github.com/jaksi/sshesame md5sums = SKIP @@ -2,11 +2,11 @@ pkgname=sshesame-git pkgver=r23.b74f93f -pkgrel=1 +pkgrel=2 pkgdesc="A fake SSH server that lets everyone in and logs their activity" arch=('x86_64') url='https://github.com/jaksi/sshesame' -license=('Apache2') +license=('Apache-2.0') makedepends=('go') source=("git+https://github.com/jaksi/sshesame") md5sums=('SKIP') @@ -16,12 +16,18 @@ pkgver() { echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } -build() { +prepare() { cd "${srcdir}/sshesame" mkdir -p $srcdir/go export GOPATH="${srcdir}"/go export PATH=$PATH:$GOPATH/bin go get -d -v ./... +} + +build() { + cd "${srcdir}/sshesame" + export GOPATH="${srcdir}"/go + export PATH=$PATH:$GOPATH/bin go build -v -o sshesame-bin } |