diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-03-28 22:33:48 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-03-28 22:33:48 -0300 |
commit | 2171f93c32d4106c873bb17f75da36f4f2ea3cec (patch) | |
tree | a80af6aa1392341ae16ed083f8a5692b54574f5a /libre/debootstrap/PKGBUILD | |
parent | ff729803bb49198248d8a72931e9c5dee3cca67a (diff) | |
download | abslibre-2171f93c32d4106c873bb17f75da36f4f2ea3cec.tar.gz abslibre-2171f93c32d4106c873bb17f75da36f4f2ea3cec.tar.bz2 abslibre-2171f93c32d4106c873bb17f75da36f4f2ea3cec.zip |
debootstrap-1.0.80-1.parabola1: updating version
Diffstat (limited to 'libre/debootstrap/PKGBUILD')
-rw-r--r-- | libre/debootstrap/PKGBUILD | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/libre/debootstrap/PKGBUILD b/libre/debootstrap/PKGBUILD new file mode 100644 index 000000000..679820cf9 --- /dev/null +++ b/libre/debootstrap/PKGBUILD @@ -0,0 +1,88 @@ +# $Id: PKGBUILD 168492 2016-03-26 16:16:17Z fyan $ +# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org> +# Maintainer: André Silva <emulatorman@parabola.nu> + +pkgname=debootstrap +pkgver=1.0.80 +pkgrel=1.parabola1 +pkgdesc="Bootstrap a basic gNewSense and Trisquel system, without Debian support" +arch=('any') +license=('GPL') +url="https://tracker.debian.org/pkg/debootstrap" +depends=('wget') +makedepends=('git' 'makedev') +replaces=(${pkgname}-libre) +conflicts=(${pkgname}-libre) +source=("git+https://anonscm.debian.org/git/d-i/debootstrap.git#tag=$pkgver" + arch-detect.patch + debootstrap.8 + gnewsense + trisquel) +md5sums=('SKIP' + '60043aaeb9afc1c2d7d2a2d9888eca35' + '654761198068b51b027d47cba4b7cfa2' + '13978bdd1d877a0dd2c3c874ecd54f03' + 'b020aa8426e70a6024c8e76312c17d78') + +prepare() { + cd debootstrap + + sed -i 's/sbin/bin/g' Makefile + + # gNewSense/Trisquel 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 + + # Workaround permission errors + # MAKEDEV is not happy with the instructions here + sed -e 's/install -o root -g root/install/' \ + -e '/chown 0:0 dev/d' \ + -e 's/(cd dev && $(MAKEDEV) std ptmx fd consoleonly)/$(MAKEDEV) -d dev std ptmx fd consoleonly/' \ + -i Makefile + + # Remove Debian files + rm -v debootstrap.8 + + # Add rebranded man + install -m644 ../debootstrap.8 . + + # Remove Debian scripts + rm -v scripts/* + + # Add gNewSense script + install -m644 $srcdir/gnewsense scripts + + # Add Trisquel script + install -m644 $srcdir/trisquel scripts + + # Enter to scripts dir + cd scripts + + # Create gNewSense symlinks + ln -s gnewsense parkes + + # Create Trisquel symlinks + ln -s trisquel awen + ln -s trisquel belenos + ln -s trisquel brigantia + ln -s trisquel dagda + ln -s trisquel dwyn + ln -s trisquel robur + ln -s trisquel slaine + ln -s trisquel taranis + ln -s trisquel toutatis +} + +build() { + cd debootstrap + fakeroot make +} + +package() { + cd debootstrap + make DESTDIR="$pkgdir" install + + install -Dm644 debootstrap.8 "$pkgdir"/usr/share/man/man8/debootstrap.8 +} |