mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/gosu: upgrade to 1.16
This commit is contained in:
parent
17d18eda23
commit
eee00d2ac6
@ -1,53 +1,28 @@
|
||||
# Contributor: David Huffman <storedbox@outlook.com>
|
||||
# Maintainer: David Huffman <storedbox@outlook.com>
|
||||
|
||||
_gosu_repo='github.com/tianon/gosu'
|
||||
_gosu_ver=1.14
|
||||
_gosu_src="gosu-$_gosu_ver"
|
||||
|
||||
_runc_repo='github.com/opencontainers/runc'
|
||||
_runc_ver=1.1.0
|
||||
_runc_src="runc-$_runc_ver"
|
||||
|
||||
pkgname=gosu
|
||||
pkgver=$_gosu_ver
|
||||
pkgrel=12
|
||||
pkgver=1.16
|
||||
pkgrel=0
|
||||
pkgdesc="Simple Go-based setuid+setgid+setgroups+exec"
|
||||
url="https://github.com/tianon/gosu"
|
||||
arch="all"
|
||||
license="Apache-2.0"
|
||||
makedepends="coreutils go"
|
||||
source="https://github.com/tianon/gosu/archive/$_gosu_ver/$_gosu_src.tar.gz
|
||||
https://github.com/opencontainers/runc/archive/v$_runc_ver/$_runc_src.tar.gz"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/tianon/gosu/archive/refs/tags/$pkgver.tar.gz"
|
||||
options="!check" # require docker to run tests
|
||||
|
||||
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
||||
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
||||
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
||||
|
||||
builddir="$srcdir"/$_gosu_repo
|
||||
prepare() {
|
||||
mkdir -p $_gosu_repo $_runc_repo
|
||||
mv -T $_gosu_src $_gosu_repo
|
||||
mv -T $_runc_src $_runc_repo
|
||||
|
||||
default_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
CGO_ENABLED=0 \
|
||||
GOPATH="$startdir:$srcdir/$_runc_repo/Godeps/_workspace" \
|
||||
GO111MODULE=off \
|
||||
go build -v
|
||||
go build -v
|
||||
}
|
||||
|
||||
package() {
|
||||
local bindir="$pkgdir/usr/bin"
|
||||
mkdir -p "$bindir"
|
||||
cp gosu "$bindir"
|
||||
install -Dm755 gosu -t "$pkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
258bc33bf7150f4520e8b5cd0497ccfe3ee83d39c866565ec5e0cfe3ccd28ef1a5694075b301936c94a45cd44621c44e28c3e0fcd0acd465a3a4fe5cff85adf2 gosu-1.14.tar.gz
|
||||
542ea87c488fd120f2b77e53e2c197f09cd504fbe55dbe47008aaa5b0565aa300fc49f8cadc24ead796e45a4e95a30dfb08bfeefa58dc370145a218fd2869e41 runc-1.1.0.tar.gz
|
||||
82f53f33418828e26045434c191d9e8e8ef92404aeed962745c034514f4249e3f930fad56d429c8c6843c3fe5daea11028205fee70c3a98221a0c896599c6ec9 gosu-1.16.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user