karn/PKGBUILD

30 lines
670 B
Bash
Raw Normal View History

2017-12-24 05:30:00 +00:00
# Maintainer: Nemo <archlinux [at] captnemo.in>
pkgname=karn
2017-12-30 04:29:41 +00:00
pkgver=0.0.4
2017-12-24 05:30:00 +00:00
pkgrel=1
pkgdesc="Manage multiple Git identities with ease"
arch=('x86_64' 'i686')
url="https://github.com/prydonius/karn"
license=('MIT')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("https://github.com/prydonius/karn/archive/v$pkgver.tar.gz")
2017-12-30 04:29:41 +00:00
sha256sums=('68d244558ef62cf1da2b87927a0a2fbf907247cdd770fc8c84bf72057195a6cb')
2017-12-24 05:30:00 +00:00
prepare() {
GOPATH=`pwd`
cd "$pkgname-$pkgver"
2017-12-30 04:29:41 +00:00
go get github.com/urfave/cli
2017-12-24 05:30:00 +00:00
}
build() {
GOPATH=`pwd`
cd "$pkgname-$pkgver"
go build cmd/karn/karn.go
}
package() {
ls -la
install -Dm755 "$pkgname-$pkgver/karn" "$pkgdir/usr/bin/$pkgname"
}