# $Id: PKGBUILD 81583 2012-12-24 15:02:13Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Andreas Wagner pkgname=schroot pkgver=1.6.3 pkgrel=4 pkgdesc="Allows users to execute shell commands under different root filesystems. (Successor to dchroot)." url="http://packages.qa.debian.org/s/schroot.html" license=('GPL3') depends=('pam' 'lockdev' 'boost' 'e2fsprogs') optdepends=('btrfs-progs-unstable' 'lvm2') arch=('i686' 'x86_64' 'mips64el') conflicts=('dchroot') replaces=('dchroot') provides=('schroot' 'sbuild' 'dchroot') backup=('etc/schroot/schroot.conf' 'etc/schroot/arch32/config' 'etc/schroot/arch32/copyfiles' 'etc/schroot/arch32/mount' 'etc/schroot/arch32/nssdatabases') options=(!libtool) source=("http://ftp.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}.orig.tar.xz" 'arch32-example' 'arch32-config' 'arch32-copyfiles' 'arch32-mount' 'arch32-nssdatabases' 'pam.d.schroot.patch' 'colon-completion.patch' 'fix-bash-completion.patch') md5sums=('f6b1badef213ce8e9ef37bb3fc213390' '54239847f89b9a4772910415bde6276a' '5a3f7b839c7e0b8933748da7c5b6385b' 'ddb2f09c02b24dab777110f9808472e1' 'f0d5d5b5e34a860f6f90b5628c680f46' 'af1da6edd8c8c0dafeeb2c2c4e0c840b' 'a8d77cac806a0a9adef3f93cdbeb280a' '8502fcc9112c2971bcae35373d2ff42f' '5ba775d4f401e2c167414caa548b71e5') build() { cd ${pkgname}-${pkgver} patch -p1 -i ${srcdir}/fix-bash-completion.patch patch -p1 -i ${srcdir}/colon-completion.patch export LDFLAGS="${LDFLAGS//-Wl,--as-needed}" ./configure \ --prefix=/usr \ --libexecdir=/usr/lib \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-dchroot \ --enable-lvm-snapshot \ --enable-btrfs-snapshot \ --with-bash-completion-dir=/usr/share/bash-completion/completions/ \ BTRFS=/sbin/btrfs \ BTRFSCTL=/sbin/btrfsctl \ LVCREATE=/sbin/lvcreate \ LVREMOVE=/sbin/lvremove # --enable-csbuild make } check() { cd ${pkgname}-${pkgver} make -k check } package() { cd ${pkgname}-${pkgver} make DESTDIR=$pkgdir install install -dm 755 ${pkgdir}/etc/schroot/arch32 install -m 644 ${srcdir}/arch32-{config,mount,copyfiles,nssdatabases} ${pkgdir}/etc/schroot/arch32 rename 'arch32-' '' ${pkgdir}/etc/schroot/arch32/* install -m 644 ${srcdir}/arch32-example ${pkgdir}/etc/schroot/chroot.d/arch32.conf.example patch -i ${srcdir}/pam.d.schroot.patch ${pkgdir}/etc/pam.d/schroot }