blob: 165d616292aed36a7e9e4470e0c804c54a7a7270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: David Huffman <storedbox@outlook.com>
# Maintainer: David Huffman <storedbox@outlook.com>
_gosu_repo='github.com/tianon/gosu'
_gosu_ver=1.11
_gosu_src="gosu-$_gosu_ver"
_runc_repo='github.com/opencontainers/runc'
_runc_ver=1.0.0-rc5
_runc_src="runc-$_runc_ver"
pkgname=gosu
pkgver=$_gosu_ver
pkgrel=0
pkgdesc="Simple Go-based setuid+setgid+setgroups+exec"
url="https://github.com/tianon/gosu"
arch="all"
license="GPL-3.0-or-later"
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"
options="!check" # require docker to run tests
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() {
cd "$builddir"
CGO_ENABLED=0 GOPATH="$startdir:$srcdir/$_runc_repo/Godeps/_workspace" \
go build -v -ldflags '-s -w'
}
package() {
cd "$builddir"
local bindir="$pkgdir/usr/bin"
mkdir -p "$bindir"
cp gosu "$bindir"
}
sha512sums="f3f0c983b33ac63dc16aaeccf691d371b48772dac37c329b557843757ec85b385cfd0b80a2b628e8000690728fe42a2690faede202767f202178da5e84980e52 gosu-1.11.tar.gz
714230887ff9706c29b0656c5cdb253698bde6252a23e7f48aa690747fb57abd7884c2da1c4d0e314f9f301c5962417351557d15d986e45fcc336e98069aeac6 runc-1.0.0-rc5.tar.gz"
|