Skip to content

Commit

Permalink
jabba: update to 0.12.2
Browse files Browse the repository at this point in the history
Development switched to a place
shyiko/jabba#833 (comment)

Adjust the package in regards of Go package guidelines
  • Loading branch information
Narrat committed Jun 28, 2023
1 parent c57e8ff commit 5705395
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 193 deletions.
10 changes: 5 additions & 5 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pkgbase = jabba
pkgdesc = Java Version Manager.
pkgver = 0.11.2
pkgrel = 4
url = https://github.com/shyiko/jabba
pkgver = 0.12.2
pkgrel = 1
url = https://github.com/Jabba-Team/jabba
arch = i686
arch = x86_64
arch = armv7h
Expand All @@ -14,7 +14,7 @@ pkgbase = jabba
depends = glibc
options = !strip
options = !emptydirs
source = https://github.com/shyiko/jabba/archive/0.11.2.tar.gz
sha256sums = 33874c81387f03fe1a27c64cb6fb585a458c1a2c1548b4b86694da5f81164355
source = jabba-0.12.2.tar.gz::https://github.com/Jabba-Team/jabba/archive/0.12.2.tar.gz
sha256sums = 44bd276fde1eaab56dc8a32ec409ba6eee5007f3a640951b3e8908c50f032bcd

pkgname = jabba
36 changes: 15 additions & 21 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
# Maintainer: Felix Golatofski <[email protected]>
# Contributor: Felix Golatofski <[email protected]>
# Contributor: Martynas Mickevičius <[email protected]>

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

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"
cd ${pkgname}-${pkgver}

make fetch
make VERSION=$pkgver build
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
.
}

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

167 changes: 0 additions & 167 deletions fix-golang-glide.patch

This file was deleted.

0 comments on commit 5705395

Please sign in to comment.