# Contributor: Disassembler # Maintainer: Disassembler pkgname=lxc pkgver=3.0.3 pkgrel=0 pkgdesc="Userspace interface for the Linux kernel containment features" url="https://linuxcontainers.org/lxc/" arch="x86_64" license="GPL" options="suid !check" makedepends="automake autoconf bsd-compat-headers libcap-dev libseccomp-dev libtool linux-headers" _commit=b8ab4849432cd64d789a757e385d1d324d88a61d source="${pkgname}-${pkgver}.tar.gz::https://github.com/lxc/lxc/archive/${_commit}.tar.gz" builddir="${srcdir}/${pkgname}-${_commit}" build() { cd ${builddir} ./autogen.sh ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-apparmor \ --with-distro=alpine \ --disable-werror make } package() { cd ${builddir} make DESTDIR=${pkgdir} install rm -rf ${pkgdir}/usr/include/ rm -rf ${pkgdir}/usr/lib/liblxc.a rm -rf ${pkgdir}/usr/lib/liblxc.la rm -rf ${pkgdir}/usr/lib/pkgconfig/ rm -rf ${pkgdir}/usr/share/doc/ rm -rf ${pkgdir}/usr/share/lxc/selinux/ rm -rf ${pkgdir}/usr/share/lxc/templates/ rm -rf ${pkgdir}/usr/share/man/ mkdir -p ${pkgdir}/var/log/lxc/ } sha512sums="ef62f93799a14ba0e1b2fdbb4f69f8b531aef8eeecf537e2a08be3f30147484729bd41fa65e9ea5519c1c1f0e6f8940aac41ca5b749f89529a5b970e4ea0095c lxc-3.0.3.tar.gz"