-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Development switched to a place shyiko/jabba#833 (comment) Adjust the package in regards of Go package guidelines
- Loading branch information
Showing
3 changed files
with
20 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
|
This file was deleted.
Oops, something went wrong.