Browse Source

Initial commit

master
Nemo 1 year ago
commit
9e9deac5b4
3 changed files with 50 additions and 0 deletions
  1. 16
    0
      .SRCINFO
  2. 4
    0
      .gitignore
  3. 30
    0
      PKGBUILD

+ 16
- 0
.SRCINFO View File

@@ -0,0 +1,16 @@
1
+pkgbase = karn
2
+	pkgdesc = Manage multiple Git identities with ease
3
+	pkgver = 0.0.3
4
+	pkgrel = 1
5
+	url = https://github.com/prydonius/karn
6
+	arch = x86_64
7
+	arch = i686
8
+	license = MIT
9
+	makedepends = go
10
+	options = !strip
11
+	options = !emptydirs
12
+	source = https://github.com/prydonius/karn/archive/v0.0.3.tar.gz
13
+	sha256sums = a9336abe63dbf6b952e1e4a3d4c31ed62dda69aa51e53f07902edb894638162d
14
+
15
+pkgname = karn
16
+

+ 4
- 0
.gitignore View File

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

+ 30
- 0
PKGBUILD View File

@@ -0,0 +1,30 @@
1
+# Maintainer: Nemo <archlinux [at] captnemo.in>
2
+
3
+pkgname=karn
4
+pkgver=0.0.3
5
+pkgrel=1
6
+pkgdesc="Manage multiple Git identities with ease"
7
+arch=('x86_64' 'i686')
8
+url="https://github.com/prydonius/karn"
9
+license=('MIT')
10
+makedepends=('go')
11
+options=('!strip' '!emptydirs')
12
+source=("https://github.com/prydonius/karn/archive/v$pkgver.tar.gz")
13
+sha256sums=('a9336abe63dbf6b952e1e4a3d4c31ed62dda69aa51e53f07902edb894638162d')
14
+
15
+prepare() {
16
+  GOPATH=`pwd`
17
+  cd "$pkgname-$pkgver"
18
+  go get github.com/codegangsta/cli
19
+}
20
+
21
+build() {
22
+  GOPATH=`pwd`
23
+  cd "$pkgname-$pkgver"
24
+  go build cmd/karn/karn.go
25
+}
26
+
27
+package() {
28
+  ls -la
29
+  install -Dm755 "$pkgname-$pkgver/karn" "$pkgdir/usr/bin/$pkgname"
30
+}

Loading…
Cancel
Save