aboutsummaryrefslogblamecommitdiffstats
path: root/community/runc/APKBUILD
blob: dc5c448480f30b041a3bb0a6583c4e5aceee2fa4 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                          

            

                                                                                         


                                                
          
                    

                                                 
                                                                                    
                                                     
                
 
           

                      

                      
                  
                      
                 
                      
                 

                     


                            
                                         
                                                 
                      
                                                    


                
           




                                                                           
            
                                                                                                                                                   
 
# Contributor: Jake Buchholz Göktürk <tomalok@gmail.com>
# Maintainer: Jake Buchholz Göktürk <tomalok@gmail.com>

pkgname=runc
pkgdesc="CLI tool for spawning and running containers according to the OCI specification"
url="https://www.opencontainers.org"
_commit=067aaf8548d78269dcb2c13b856775e27c410f9c
pkgver=1.1.0
pkgrel=0
arch="all"
license="Apache-2.0"
makedepends="go go-md2man libseccomp-dev libtool"
subpackages="$pkgname-doc"
source="https://github.com/opencontainers/runc/archive/v$pkgver/runc-$pkgver.tar.gz"
builddir="$srcdir/src/github.com/opencontainers/runc"
options="!check"

# secfixes:
#   1.0.3-r0:
#     - CVE-2021-43784
#   1.0.0_rc95-r0:
#     - CVE-2021-30465
#   1.0.0_rc10-r0:
#     - CVE-2019-19921
#   1.0.0_rc9-r0:
#     - CVE-2019-16884
#   1.0.0_rc7-r0:
#     - CVE-2019-5736

build() {
	cd "$srcdir"
	export GOPATH="$PWD"
	mkdir -p "$(dirname "$builddir")"
	ln -s "$PWD/$pkgname-$pkgver" "$builddir"
	cd "$builddir"
	make COMMIT="$_commit" EXTRA_LDFLAGS="-w -s"
	make man
}

package() {
	install -Dsm755 "$builddir"/runc "$pkgdir"/usr/bin/runc
	install -d "$pkgdir"/usr/share/man/man8/
	install -Dm644 "$builddir"/man/man8/* "$pkgdir"/usr/share/man/man8/
}

sha512sums="
542ea87c488fd120f2b77e53e2c197f09cd504fbe55dbe47008aaa5b0565aa300fc49f8cadc24ead796e45a4e95a30dfb08bfeefa58dc370145a218fd2869e41  runc-1.1.0.tar.gz
"