Date: Friday, April 6, 2018 @ 03:22:54 Author: felixonmars Revision: 314542
archrelease: copy trunk to community-any Added: debootstrap/repos/community-any/PKGBUILD (from rev 314541, debootstrap/trunk/PKGBUILD) debootstrap/repos/community-any/arch-detect.patch (from rev 314541, debootstrap/trunk/arch-detect.patch) Deleted: debootstrap/repos/community-any/PKGBUILD debootstrap/repos/community-any/arch-detect.patch -------------------+ PKGBUILD | 74 ++++++++++++++++++++++++++-------------------------- arch-detect.patch | 42 ++++++++++++++--------------- 2 files changed, 58 insertions(+), 58 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-04-06 03:22:31 UTC (rev 314541) +++ PKGBUILD 2018-04-06 03:22:54 UTC (rev 314542) @@ -1,37 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=debootstrap -pkgver=1.0.95 -pkgrel=1 -pkgdesc="Bootstrap a basic Debian system" -arch=('any') -license=('GPL') -url="https://tracker.debian.org/pkg/debootstrap" -depends=('wget' 'binutils') -source=("$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/debootstrap/archive/$pkgver.tar.gz" - arch-detect.patch) -optdepends=('gnupg: check release signatures' - 'debian-archive-keyring: check release signatures for Debian' - 'ubuntu-keyring: check release signatures for Ubuntu') -sha512sums=('0ad947f90bdabea2624fa5089eef997c94c6ea3bb3359bb6ca2acb5a705c09ba50a5398b21b2b1c147d1bfa51cecb5e58988e539475969bd674d9e9ea0767ea8' - '824109b2ea138d0dd1a31039a165cb4079da856cb11c664fc5a7f49a42de08ff56a620887d3c0914b69140849799f4473b1f27a05cd14cd60ef2a41627f8d5e1') - -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 -} Copied: debootstrap/repos/community-any/PKGBUILD (from rev 314541, debootstrap/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-04-06 03:22:54 UTC (rev 314542) @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=debootstrap +pkgver=1.0.96 +pkgrel=1 +pkgdesc="Bootstrap a basic Debian system" +arch=('any') +license=('GPL') +url="https://tracker.debian.org/pkg/debootstrap" +depends=('wget' 'binutils') +source=("$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/debootstrap/archive/$pkgver.tar.gz" + arch-detect.patch) +optdepends=('gnupg: check release signatures' + 'debian-archive-keyring: check release signatures for Debian' + 'ubuntu-keyring: check release signatures for Ubuntu') +sha512sums=('f0cc0363aa122dfcff0c8b2853a0b1c7aaff052374842554fa7f1904bb9ded6fa0965850bbf3fdbfdefdd21b01dcb5710449d040c6292606f645370b7ced4a23' + '824109b2ea138d0dd1a31039a165cb4079da856cb11c664fc5a7f49a42de08ff56a620887d3c0914b69140849799f4473b1f27a05cd14cd60ef2a41627f8d5e1') + +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 +} Deleted: arch-detect.patch =================================================================== --- arch-detect.patch 2018-04-06 03:22:31 UTC (rev 314541) +++ arch-detect.patch 2018-04-06 03:22:54 UTC (rev 314542) @@ -1,21 +0,0 @@ -diff --git a/debootstrap b/debootstrap -index fcdb20f..184900d 100755 ---- a/debootstrap -+++ b/debootstrap -@@ -427,6 +427,16 @@ elif in_path udpkg && \ - HOST_ARCH=`/usr/bin/udpkg --print-architecture` - elif [ -e $DEBOOTSTRAP_DIR/arch ]; then - HOST_ARCH=`cat $DEBOOTSTRAP_DIR/arch` -+elif in_path pacman; then -+ # pacman 5.1 will have `pacman-conf Architecture` -+ CARCH="$(bash -c '. /etc/makepkg.conf && echo $CARCH')" -+ case "$CARCH" in -+ "i686") HOST_ARCH="i386" ;; -+ "x86_64") HOST_ARCH="amd64" ;; -+ "armv7h") HOST_ARCH="armhf" ;; -+ "aarch64") HOST_ARCH="arm64" ;; -+ *) echo "Unknown architecture: $CARCH" && exit 1 -+ esac - fi - HOST_OS="$HOST_ARCH" - # basic host OS guessing for non-Debian systems Copied: debootstrap/repos/community-any/arch-detect.patch (from rev 314541, debootstrap/trunk/arch-detect.patch) =================================================================== --- arch-detect.patch (rev 0) +++ arch-detect.patch 2018-04-06 03:22:54 UTC (rev 314542) @@ -0,0 +1,21 @@ +diff --git a/debootstrap b/debootstrap +index fcdb20f..184900d 100755 +--- a/debootstrap ++++ b/debootstrap +@@ -427,6 +427,16 @@ elif in_path udpkg && \ + HOST_ARCH=`/usr/bin/udpkg --print-architecture` + elif [ -e $DEBOOTSTRAP_DIR/arch ]; then + HOST_ARCH=`cat $DEBOOTSTRAP_DIR/arch` ++elif in_path pacman; then ++ # pacman 5.1 will have `pacman-conf Architecture` ++ CARCH="$(bash -c '. /etc/makepkg.conf && echo $CARCH')" ++ case "$CARCH" in ++ "i686") HOST_ARCH="i386" ;; ++ "x86_64") HOST_ARCH="amd64" ;; ++ "armv7h") HOST_ARCH="armhf" ;; ++ "aarch64") HOST_ARCH="arm64" ;; ++ *) echo "Unknown architecture: $CARCH" && exit 1 ++ esac + fi + HOST_OS="$HOST_ARCH" + # basic host OS guessing for non-Debian systems