# Maintainer: Felix Yan pkgname=debootstrap pkgver=1.0.128 pkgrel=1 pkgdesc="Bootstrap a basic Debian system" arch=('any') license=('GPL') url="https://tracker.debian.org/pkg/debootstrap" depends=('perl' 'wget' 'binutils') source=(https://salsa.debian.org/installer-team/debootstrap/-/archive/$pkgver/debootstrap-$pkgver.tar.bz2 arch-detect.patch) optdepends=('gnupg: check release signatures' 'debian-archive-keyring: check release signatures for Debian' 'debian-ports-archive-keyring: check release signatures for Debian Ports' 'ubuntu-keyring: check release signatures for Ubuntu') sha512sums=('fe9073bdbc4d98f0bfc72a3b4c1a64b396db8899c998fe93823bfc718c984ddaa9ce86539d58246814be2c3b4fbc1651ee6010f6b89ee0bb77b4cb501dee911a' 'd70a9d096d1692f71970cc818515bd783a6031bfe2d2857134eabf6fd36e4137152ebafa8e2d4ae7c8cb442c8532cd4192715b286e38b4d947b0b467e9ed54a5') prepare() { cd debootstrap-$pkgver sed -i 's/sbin/bin/g' Makefile # Debian defaults sed -i 's|export PATH|export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"|' debootstrap # Detect Architecture patch -p1 -i ../arch-detect.patch } package() { cd debootstrap-$pkgver make DESTDIR="$pkgdir" install install -Dm644 debootstrap.8 "$pkgdir"/usr/share/man/man8/debootstrap.8 }