AUR package for karn - Manage multiple Git identities https://aur.archlinux.org/packages/karn/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD 755B

123456789101112131415161718192021222324252627282930313233343536
  1. # Maintainer: Nemo <archlinux [at] captnemo.in>
  2. pkgname=karn
  3. pkgver=0.0.4
  4. pkgrel=2
  5. pkgdesc="Manage multiple Git identities with ease"
  6. arch=('x86_64' 'i686')
  7. url="https://github.com/prydonius/karn"
  8. license=('MIT')
  9. makedepends=('go')
  10. options=('!strip' '!emptydirs')
  11. source=("https://github.com/prydonius/karn/archive/v$pkgver.tar.gz")
  12. sha256sums=('68d244558ef62cf1da2b87927a0a2fbf907247cdd770fc8c84bf72057195a6cb')
  13. build() {
  14. cd "$srcdir/$pkgname-$pkgver"
  15. rm -rf "$srcdir/go/src"
  16. mkdir -p "$srcdir/go/src"
  17. export GOPATH="$srcdir/go"
  18. mv "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/$pkgname"
  19. cd "$srcdir/go/src/$pkgname/"
  20. go get
  21. go build cmd/karn/karn.go
  22. }
  23. package() {
  24. install -DT "$srcdir/go/src/$pkgname/$pkgname" "$pkgdir/usr/bin/karn"
  25. }