void-packages/srcpkgs/schroot/template

73 lines
2.3 KiB
Bash

# Template file for 'schroot'
pkgname=schroot
reverts="1.7.2_9"
version=1.6.10
revision=16
_debian_version=12+deb11u1
build_style=cmake
configure_args="
-Ddchroot=ON
-Dlvm-snapshot=ON
-Dbtrfs-snapshot=ON
-Dblock-device=ON
-Dloopback=ON
-Duuid=ON
-DBTRFS_EXECUTABLE=/usr/bin/btrfs
-DLVCREATE_EXECUTABLE=/usr/sbin/lvcreate
-DLVREMOVE_EXECUTABLE=/usr/sbin/lvremove
-DZFS_EXECUTABLE=/usr/bin/zfs
-Dbash_completion_dir=/usr/share/bash-completion/completions"
conf_files="
/etc/schroot/minimal/nssdatabases
/etc/schroot/minimal/fstab
/etc/schroot/minimal/copyfiles
/etc/schroot/buildd/nssdatabases
/etc/schroot/buildd/fstab
/etc/schroot/buildd/copyfiles
/etc/schroot/default/nssdatabases
/etc/schroot/default/fstab
/etc/schroot/default/copyfiles
/etc/schroot/schroot.conf
/etc/schroot/desktop/nssdatabases
/etc/schroot/desktop/fstab
/etc/schroot/desktop/copyfiles
/etc/schroot/sbuild/nssdatabases
/etc/schroot/sbuild/fstab
/etc/schroot/sbuild/copyfiles"
make_dirs="
/var/lib/schroot/unpack 0755 root root
/var/lib/schroot/union/underlay 0755 root root
/var/lib/schroot/union/overlay 0755 root root
/var/lib/schroot/session 0755 root root
/var/lib/schroot/mount 0755 root root
/etc/schroot/chroot.d 0755 root root"
hostmakedepends="pkg-config libtool gettext xz po4a groff"
makedepends="boost-devel pam-devel lockdev-devel libuuid-devel e2fsprogs-devel
gettext-devel libcppunit-devel"
short_desc="Allows users to execute commands in different chroots"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3.0-only"
homepage="https://wiki.debian.org/Schroot"
distfiles="
${DEBIAN_SITE}/main/s/${pkgname}/${pkgname}_${version}.orig.tar.xz
http://security.debian.org/debian-security/pool/main/s/${pkgname}/${pkgname}_${version}-${_debian_version}.debian.tar.xz"
checksum="
3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b
7bd4e0c2709979362c86a86c10d2b23d290d26e1a2d301a602e829327f483ec1"
nocross=yes
skip_extraction="schroot_${version}-${_debian_version}.debian.tar.xz"
post_extract() {
bsdtar -xf $XBPS_SRCDISTDIR/schroot-${version}/$skip_extraction
cat debian/patches/series | while read p; do
patch -Np1 -F0 -i debian/patches/$p
done
}
post_install() {
# Remove development files
rm -rf ${DESTDIR}/usr/include \
${DESTDIR}/usr/lib/*.a \
${DESTDIR}/usr/lib/pkgconfig
}