2014-08-01 15:28:43 +00:00
|
|
|
# Template file for 'debootstrap'
|
|
|
|
pkgname=debootstrap
|
2014-09-04 20:34:43 +00:00
|
|
|
version=1.0.61
|
2014-08-01 15:28:43 +00:00
|
|
|
revision=1
|
|
|
|
build_style=fetch
|
|
|
|
depends="wget"
|
|
|
|
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"
|
2014-09-04 20:34:43 +00:00
|
|
|
checksum=ebf5996ce1dfe442f100f7e5afe44848851ae49515b4ac1688498258ab29b8e0
|
2014-08-01 15:28:43 +00:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
ar p ${pkgname}_${version}_all.deb data.tar.xz | tar xJf - -C ${DESTDIR}
|
|
|
|
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
|
|
|
|
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;;
|
|
|
|
*) uname -m;;
|
|
|
|
esac >${DESTDIR}/usr/share/debootstrap/arch
|
|
|
|
}
|