# Template file for 'containers'
pkgname=containers
version=1.0
revision=1
short_desc="Lightweight containers using Linux user namespaces"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="https://github.com/arachsys/containers"
long_desc="
 This package is a simple implementation of containers for Linux, making
 secure containers as easy to create and use as a traditional chroot. It
 comprises three utilities, contain, inject and pseudo, which use the kernel
 support for user namespaces merged in Linux 3.8."

do_fetch() {
	git clone -b ${pkgname}-${version} \
		git://github.com/arachsys/containers.git ${pkgname}-${version}
}

do_build() {
	make CC=$CC CFLAGS="${CFLAGS}" ${makejobs}
}

do_install() {
	# Disable strip
	sed -e 's,-s ,,g' -i Makefile
	make BINDIR=/usr/bin DESTDIR=${DESTDIR} install
}

containers_package() {
	pkg_install() {
		vmove all
	}
}
