From ed8beb441f4f319c23abd72eaea8e8039a35c5e2 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 10 Nov 2018 18:52:05 +0100 Subject: debootstrap: Add PureOS support This commit was tested on an i686 installation with: - Trisquel flidas: test OK - Trisquel belenos: test OK - Trisquel toutatis: test OK And on an x86_64 installation with: - PureOS green: test OK The following things were tested: - debootstrap return code (0 for success) - the presence of the usual folders (bin, boot, dev, etc) The tests were done the following way: (1) The package was built and installed (2) an empty rootfs directory was created (3) debootstrap was run in this directory with: - sudo debootstrap "${version}" rootfs/ \ http://archive.trisquel.info/trisquel # For Trisquel - sudo debootstrap "${version}" rootfs/ \ https://repo.puri.sm/pureos # For PureOS With version being flidas, belenos, and Toutatis for Trisquel and green for PureOS (4) The exit code was checked and the directories listed inside the rootfs directory Signed-off-by: Denis 'GNUtoo' Carikli --- libre/debootstrap/PKGBUILD | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'libre/debootstrap/PKGBUILD') diff --git a/libre/debootstrap/PKGBUILD b/libre/debootstrap/PKGBUILD index 02167ab2a..1df277ddb 100644 --- a/libre/debootstrap/PKGBUILD +++ b/libre/debootstrap/PKGBUILD @@ -7,20 +7,25 @@ pkgname=debootstrap pkgver=1.0.110 pkgrel=1 -pkgrel+=.par1 +pkgrel+=.par2 +_pureospkgver=1.0.108 +_pureospkgrel=pureos1 pkgdesc="Bootstrap a basic gNewSense and Trisquel system, without Debian support" 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" + "https://repo.puri.sm/pureos/pool/main/d/debootstrap/debootstrap_$_pureospkgver$_pureospkgrel.tar.gz" arch-detect.patch debootstrap.8 gnewsense trisquel) optdepends=('gnupg: check release signatures' + 'pureos-archive-keyring: check PureOS release signatures' 'trisquel-keyring: check Trisquel release signatures') sha512sums=('e687bd3ca43f41f2f2d196b1519e6a7cc3a3e63d9b2e50c808a7508ff90aece4499d61f613a872325df27e44b723e9157a27f85f0e0aa355e49017f84bbb1561' + '0eccd31d4dea343ba64dab4948da5d2de519773dfe37c8a16755f5a8bb5fc6278840ec20113629d899745c69eef694e4c8e24918e8d2c375253eb2a6eb9acfcd' '56e25f48027f99f7e720859a9e14fe769b1cbd6227c7a7e27e14c2fea88520109342d6e5b127dc34ce8cc40f46941a0c5157ad35cf8ef9b3e4323877a4b32d97' '0b3507756b8f29d19146df3201143ccbd71cfd1f7ef865d184079180612b90c046cabab59fe42d246bfe476ae8fd5c43e81ee2fc3ee06bbc1fc3e75d9f1382ca' '968ef005bf1f399b3400080b2ba65f1b32c067c49faadc1caa7ee524a85980f0a6625c7b06838e01bbd8b99a496492da77a38f0e17f0a81fc029ee611fe639b6' @@ -57,6 +62,9 @@ prepare() { # Add gNewSense script install -m644 $srcdir/gnewsense scripts + # Add PureOS script + install -m644 $srcdir/debootstrap-$_pureospkgver$_pureospkgrel/scripts/green scripts/pureos + # Add Trisquel script install -m644 $srcdir/trisquel scripts @@ -67,6 +75,11 @@ prepare() { ln -s gnewsense ucclia ln -s gnewsense parkes + # Create PureOS symlinks + ln -s pureos green + ln -s pureos landing + ln -s pureos purple + # Create Trisquel symlinks ln -s trisquel awen ln -s trisquel belenos -- cgit v1.2.3