31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
# Template file for 'debootstrap'
|
|
pkgname=debootstrap
|
|
version=1.0.110
|
|
revision=1
|
|
build_style=fetch
|
|
depends="binutils gnupg gzip tar wget xz"
|
|
short_desc="Bootstrap a basic Debian system"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
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_2017.5_all.deb"
|
|
checksum="934e24d692f10dcf8ec97a60f27080c9f678bcd511d46f04529842fa313b9345
|
|
6a38407c47fefad2d8459dc271d109f1841ee857f993ed3ce2884e33f7f0f734"
|
|
|
|
do_install() {
|
|
ar p ${pkgname}_${version}_all.deb data.tar.gz | tar xvzf - -C ${DESTDIR}
|
|
ar p debian-archive-keyring_2017.5_all.deb data.tar.xz | tar xvJf - -C ${DESTDIR} ./usr/share/keyrings/debian-archive-keyring.gpg
|
|
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;;
|
|
aarch64*) echo arm64;;
|
|
*) uname -m;;
|
|
esac >${DESTDIR}/usr/share/debootstrap/arch
|
|
}
|