This commit is contained in:
Nemo 2017-12-24 11:00:00 +05:30
коміт 9e9deac5b4
3 змінених файлів з 50 додано та 0 видалено

16
.SRCINFO Normal file

@ -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 сторонній Normal file

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

30
PKGBUILD Normal file

@ -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"
}