debootstrap: don't manually extract deb
This commit is contained in:
parent
0c2e9b892c
commit
c6859cf8d5
1 changed files with 12 additions and 6 deletions
|
@ -2,13 +2,12 @@
|
|||
pkgname=debootstrap
|
||||
version=1.0.128+nmu2
|
||||
revision=1
|
||||
build_style=fetch
|
||||
depends="binutils gnupg gzip tar wget xz zstd"
|
||||
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
|
||||
distfiles="${DEBIAN_SITE}/main/d/debootstrap/debootstrap_${version}_all.deb
|
||||
${DEBIAN_SITE}/main/d/debian-archive-keyring/debian-archive-keyring_2021.1.1_all.deb"
|
||||
checksum="284fd2a38bd3522bfaa475540d8c622dde29e465b3439223c950023c5a45df60
|
||||
56beca470dcd9b6d7e6c3c9e9d702101e01e9467e62810a8c357bd7b9c26251d"
|
||||
|
@ -25,12 +24,19 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
*) broken="please add your architecture";;
|
||||
esac
|
||||
|
||||
post_extract() {
|
||||
for x in bullseye buster removed stretch; do
|
||||
rm usr/share/keyrings/debian-archive-$x-*
|
||||
done
|
||||
rm -r usr/share/doc/debian-archive-keyring
|
||||
|
||||
mv usr/sbin usr/bin
|
||||
echo ${_debarch} > usr/share/debootstrap/arch
|
||||
}
|
||||
|
||||
do_install() {
|
||||
bsdtar xOf ${pkgname}_${version}_all.deb data.tar.gz | bsdtar xvzf - -C ${DESTDIR}
|
||||
bsdtar xOf debian-archive-keyring_2021.1.1_all.deb data.tar.xz | bsdtar xvJf - -C ${DESTDIR} ./usr/share/keyrings/debian-archive-keyring.gpg
|
||||
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
|
||||
vcopy usr /
|
||||
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
|
||||
echo ${_debarch} >${DESTDIR}/usr/share/debootstrap/arch
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue