void-packages/srcpkgs/debootstrap/template
2016-02-20 17:52:47 +01:00

31 lines
1.3 KiB
Bash

# Template file for 'debootstrap'
pkgname=debootstrap
version=1.0.79
revision=1
build_style=fetch
depends="wget gnupg binutils"
short_desc="Bootstrap a basic Debian system"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://packages.qa.debian.org/d/debootstrap.html"
distfiles="${DEBIAN_SITE}/main/d/${pkgname}/${pkgname}_${version}_all.deb
${DEBIAN_SITE}/main/d/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb"
checksum="5139e48966cf557b093142b3c142ef30fcea0f928ced41994745e147b2e4e3d9
017a2fba215cd64612891f5aa02546be5c0e30923a66672f889867cc6dd8d3a0"
do_install() {
ar p ${pkgname}_${version}_all.deb data.tar.gz | tar xvzf - -C ${DESTDIR}
ar p debian-archive-keyring_2014.3_all.deb data.tar.xz | tar xvJf - -C ${DESTDIR} ./usr/share/keyrings/debian-archive-keyring.gpg
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
patch -d ${DESTDIR} -Np0 <${FILESDIR}/bug-668001.patch
sed -i 's|export PATH|export PATH="/usr/sbin:/sbin:/usr/bin:/bin"|' ${DESTDIR}/usr/bin/debootstrap
vlicense ${DESTDIR}/usr/share/doc/debootstrap/copyright LICENSE
rm ${DESTDIR}/usr/share/doc/debootstrap/copyright
case "$XBPS_TARGET_MACHINE" in
arm*) echo armhf;;
i686*) echo i386;;
x86_64*) echo amd64;;
aarch64*) echo arm64;;
*) uname -m;;
esac >${DESTDIR}/usr/share/debootstrap/arch
}