diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/lxc/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/lxc/PKGBUILD')
-rw-r--r-- | community/lxc/PKGBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/community/lxc/PKGBUILD b/community/lxc/PKGBUILD new file mode 100644 index 000000000..354f1cafc --- /dev/null +++ b/community/lxc/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 93086 2013-06-24 09:48:17Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Andrea Zucchelli <zukka77@gmail.com> +# Contributor: Daniel Micay <danielmicay@gmail.com> +# Contributor: Jonathan Liu <net147@gmail.com> +# Contributor: Jon Nordby <jononor@gmail.com> + +pkgname=lxc +pkgver=0.9.0 +epoch=1 +pkgrel=4 +pkgdesc="Linux Containers" +arch=('i686' 'x86_64') +url="http://lxc.sourceforge.net/" +depends=('bash' 'perl' 'libseccomp') +makedepends=('docbook2x') +optdepends=('arch-install-scripts: for archlinux template') +license=('LGPL') +source=("http://lxc.sourceforge.net/download/lxc/$pkgname-${pkgver/_/-}.tar.gz") +md5sums=('8552a4479090616f4bc04d8473765fc9') + +prepare() { + cd "$srcdir/$pkgname-${pkgver/_/-}" + sed -i \ + -e "s/for name in docbook2x-man db2x_docbook2man; do/for name in docbook2x-man db2x_docbook2man docbook2man; do/" \ + -e "s|AM_INIT_AUTOMAKE.*|AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects])|" \ + configure.ac +} + +build() { + cd "$srcdir/$pkgname-${pkgver/_/-}" + ./autogen.sh + ./configure \ + --prefix=/usr \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --disable-apparmor \ + --enable-seccomp + make +} + +package() { + cd "$srcdir/$pkgname-${pkgver/_/-}" + + make DESTDIR="$pkgdir" install + install -d -m755 "$pkgdir/var/lib/lxc" + + cd doc + find . -type f -name '*.1' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man1/{}" \; + find . -type f -name '*.5' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man5/{}" \; + find . -type f -name '*.7' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man7/{}" \; +} |