void-packages/srcpkgs/debootstrap/template

32 lines
1.3 KiB
Text
Raw Normal View History

2014-08-01 15:28:43 +00:00
# Template file for 'debootstrap'
pkgname=debootstrap
2014-11-25 12:25:59 +00:00
version=1.0.66
revision=1
2014-08-01 15:28:43 +00:00
build_style=fetch
depends="wget gnupg"
2014-08-01 15:28:43 +00:00
short_desc="Bootstrap a basic Debian system"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://packages.qa.debian.org/d/debootstrap.html"
update_ignore="*~*"
distfiles="${DEBIAN_SITE}/main/d/${pkgname}/${pkgname}_${version}_all.deb
${DEBIAN_SITE}/main/d/debian-archive-keyring/debian-archive-keyring_2014.1_all.deb"
2014-11-25 12:25:59 +00:00
checksum="d3bab5314adc6337e1ebfbcedf5d3e324e3f90aa3e09f10a1abcd9779e4d5bbc
baae1c8253416575180ce8a1d2de3a21bd6a82c31bc89b2ec0bff0406531e9f1"
2014-08-01 15:28:43 +00:00
do_install() {
2014-11-25 12:25:59 +00:00
ar p ${pkgname}_${version}_all.deb data.tar.gz | tar xvzf - -C ${DESTDIR}
ar p debian-archive-keyring_2014.1_all.deb data.tar.xz | tar xvJf - -C ${DESTDIR} ./usr/share/keyrings/debian-archive-keyring.gpg
2014-08-01 15:28:43 +00:00
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
patch -d ${DESTDIR} -Np0 <${FILESDIR}/bug-668001.patch
2014-08-01 15:28:43 +00:00
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
2014-10-22 15:09:54 +00:00
case "$XBPS_TARGET_MACHINE" in
arm*) echo armhf;;
i686*) echo i386;;
x86_64*) echo amd64;;
*) uname -m;;
esac >${DESTDIR}/usr/share/debootstrap/arch
2014-08-01 15:28:43 +00:00
}