void-packages/srcpkgs/debootstrap/template

32 lines
1.3 KiB
Bash
Raw Normal View History

2014-08-01 17:28:43 +02:00
# Template file for 'debootstrap'
pkgname=debootstrap
2016-11-17 12:20:57 +01:00
version=1.0.87
2016-09-09 13:22:38 +02:00
revision=1
2014-08-01 17:28:43 +02:00
build_style=fetch
depends="binutils bzip2 gnupg gzip tar wget xz"
2014-08-01 17:28:43 +02: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"
distfiles="${DEBIAN_SITE}/main/d/${pkgname}/${pkgname}_${version}_all.deb
2015-01-15 11:31:14 +01:00
${DEBIAN_SITE}/main/d/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb"
2016-11-17 12:20:57 +01:00
checksum="a5f2d34a8f7bd28bb983024409a08f78725be8cddaef9af4734993e78df3b1fb
2015-01-15 11:31:14 +01:00
017a2fba215cd64612891f5aa02546be5c0e30923a66672f889867cc6dd8d3a0"
2014-08-01 17:28:43 +02:00
do_install() {
2014-11-25 13:25:59 +01:00
ar p ${pkgname}_${version}_all.deb data.tar.gz | tar xvzf - -C ${DESTDIR}
2015-01-15 11:31:14 +01:00
ar p debian-archive-keyring_2014.3_all.deb data.tar.xz | tar xvJf - -C ${DESTDIR} ./usr/share/keyrings/debian-archive-keyring.gpg
2014-08-01 17:28:43 +02:00
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
patch --no-backup-if-mismatch -d ${DESTDIR} -Np0 <${FILESDIR}/bug-668001.patch
2014-08-01 17:28:43 +02: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 17:09:54 +02:00
case "$XBPS_TARGET_MACHINE" in
arm*) echo armhf;;
i686*) echo i386;;
x86_64*) echo amd64;;
2015-07-29 10:46:58 +02:00
aarch64*) echo arm64;;
2014-10-22 17:09:54 +02:00
*) uname -m;;
esac >${DESTDIR}/usr/share/debootstrap/arch
2014-08-01 17:28:43 +02:00
}