Date: Sunday, November 15, 2020 @ 16:39:45 Author: shibumi Revision: 754591
archrelease: copy trunk to community-x86_64 Added: yaegi/repos/community-x86_64/PKGBUILD (from rev 754590, yaegi/trunk/PKGBUILD) Deleted: yaegi/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 76 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 41 insertions(+), 35 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-11-15 16:39:36 UTC (rev 754590) +++ PKGBUILD 2020-11-15 16:39:45 UTC (rev 754591) @@ -1,35 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> -# Contributor: navigaid <navig...@gmail.com> -pkgname=yaegi -pkgver=0.8.10 -pkgrel=1 -pkgdesc='Yet another Elegant Go Interpreter' -arch=('x86_64') -url='https://github.com/containous/yaegi' -license=('Apache') -makedepends=('go-pie') -depends=('glibc') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/containous/yaegi/archive/v${pkgver}.tar.gz") -sha512sums=('f80354b377e934582e5300c6fe97cd5c7ae285c57d47e34084948004b7c16d92fc9a600754e31ff53eb617b09d0953a84b0fcd33ea6692640780e52d02a0ea5a') - -build() { - cd "${pkgname}-${pkgver}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - go build ./cmd/yaegi -} - -# These checks fail right now :( -#check() { -# cd "${pkgname}-${pkgver}" -# go test ./... -#} - -package() { - cd "${pkgname}-${pkgver}" - install -Dm755 yaegi "${pkgdir}/usr/bin/${pkgname}" - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} Copied: yaegi/repos/community-x86_64/PKGBUILD (from rev 754590, yaegi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-11-15 16:39:45 UTC (rev 754591) @@ -0,0 +1,41 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: navigaid <navig...@gmail.com> +pkgname=yaegi +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') +depends=('glibc') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/containous/yaegi/archive/v${pkgver}.tar.gz") +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 "${PACKAGE_ROOT}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build ./cmd/yaegi +} + +#check() { +# cd "${PACKAGE_ROOT}" +# go test ./... +#} + +package() { + cd "${PACKAGE_ROOT}" + install -Dm755 yaegi "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}