commit 9e9deac5b4623c2af905101c84873fb1f125d8cc Author: Nemo Date: Sun Dec 24 11:00:00 2017 +0530 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c4a53e6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = karn + pkgdesc = Manage multiple Git identities with ease + pkgver = 0.0.3 + pkgrel = 1 + url = https://github.com/prydonius/karn + arch = x86_64 + arch = i686 + license = MIT + makedepends = go + options = !strip + options = !emptydirs + source = https://github.com/prydonius/karn/archive/v0.0.3.tar.gz + sha256sums = a9336abe63dbf6b952e1e4a3d4c31ed62dda69aa51e53f07902edb894638162d + +pkgname = karn + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8760368 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +src +pkg +*.tar \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9e8d403 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Nemo + +pkgname=karn +pkgver=0.0.3 +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") +sha256sums=('a9336abe63dbf6b952e1e4a3d4c31ed62dda69aa51e53f07902edb894638162d') + +prepare() { + GOPATH=`pwd` + cd "$pkgname-$pkgver" + go get github.com/codegangsta/cli +} + +build() { + GOPATH=`pwd` + cd "$pkgname-$pkgver" + go build cmd/karn/karn.go +} + +package() { + ls -la + install -Dm755 "$pkgname-$pkgver/karn" "$pkgdir/usr/bin/$pkgname" +} \ No newline at end of file