Browse Source

Initial commit

master
Nemo 4 years ago
commit
9e9deac5b4
  1. 16
      .SRCINFO
  2. 4
      .gitignore
  3. 30
      PKGBUILD

16
.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

4
.gitignore

@ -0,0 +1,4 @@
*.tar.gz
src
pkg
*.tar

30
PKGBUILD

@ -0,0 +1,30 @@
# Maintainer: Nemo <archlinux [at] captnemo.in>
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"
}
Loading…
Cancel
Save