[arch-commits] Commit in yaegi/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Sun Nov 15 16:39:37 UTC 2020
Date: Sunday, November 15, 2020 @ 16:39:36
Author: shibumi
Revision: 754590
upgpkg: yaegi 0.9.6-1 disable tests, because of errors
I hope we can enable them soon again :(
Modified:
yaegi/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-15 16:39:10 UTC (rev 754589)
+++ PKGBUILD 2020-11-15 16:39:36 UTC (rev 754590)
@@ -1,19 +1,26 @@
# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
# Contributor: navigaid <navigaid at gmail.com>
pkgname=yaegi
-pkgver=0.8.10
+pkgver=0.9.6
pkgrel=1
pkgdesc='Yet another Elegant Go Interpreter'
arch=('x86_64')
url='https://github.com/containous/yaegi'
license=('Apache')
-makedepends=('go-pie')
+makedepends=('go')
depends=('glibc')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/containous/yaegi/archive/v${pkgver}.tar.gz")
-sha512sums=('f80354b377e934582e5300c6fe97cd5c7ae285c57d47e34084948004b7c16d92fc9a600754e31ff53eb617b09d0953a84b0fcd33ea6692640780e52d02a0ea5a')
+sha512sums=('b3bd7b82dd5605205d991e1f7fa10541420e98845b0b9cd773fe70acfb5db6eb76d4cec97783eac9ca5ad36c15da2ad73d36533055da94af910e149dad1cc109')
+prepare() {
+ export GOPATH="${srcdir}"
+ mkdir -p src/github.com/containous "${GOPATH}/bin"
+ mv "${pkgname}-${pkgver}" "src/github.com/containous/${pkgname}"
+ export PACKAGE_ROOT="${GOPATH}/src/github.com/containous/${pkgname}"
+}
+
build() {
- cd "${pkgname}-${pkgver}"
+ cd "${PACKAGE_ROOT}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
@@ -22,14 +29,13 @@
go build ./cmd/yaegi
}
-# These checks fail right now :(
#check() {
-# cd "${pkgname}-${pkgver}"
+# cd "${PACKAGE_ROOT}"
# go test ./...
#}
package() {
- cd "${pkgname}-${pkgver}"
+ cd "${PACKAGE_ROOT}"
install -Dm755 yaegi "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
More information about the arch-commits
mailing list