summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c77584cc8fe11c607a6f73c387cab610605b52be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: Martynas Mickevičius <self@2m.lt>

pkgname=jabba
pkgver=0.11.2
pkgrel=4
pkgdesc="Java Version Manager."
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/shyiko/jabba"
license=('Apache')
options=('!strip' '!emptydirs')
makedepends=('git' 'go')
depends=('glibc')
source=("https://github.com/shyiko/jabba/archive/${pkgver}.tar.gz")
sha256sums=('33874c81387f03fe1a27c64cb6fb585a458c1a2c1548b4b86694da5f81164355')

prepare() {
  cd $srcdir/$pkgname-$pkgver
  echo "!! This patch will create new files -- if it says Skipped patch, it means it failed. If so, do a clean build [remove src]"
  patch -Np1 < ../../fix-golang-glide.patch
  
}

build() {
  export GOPATH=$srcdir/gopath
  mkdir -p $GOPATH

  mkdir -p "$GOPATH/src/github.com/shyiko"
  mv "$srcdir/$pkgname-$pkgver" "$GOPATH/src/github.com/shyiko/jabba"
  cd "$GOPATH/src/github.com/shyiko/jabba"

  make fetch
  make VERSION=$pkgver build
}

package() {
  install -D -m755 "$srcdir/gopath/src/github.com/shyiko/jabba/jabba" "$pkgdir/usr/bin/jabba"
}