summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96c19e51db10dfc794c57eb99b02bcc29612763c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: prg <prg-archlinux@xannode.com>
# Maintainer: prg <prg-archlinux@xannode.com>

# Based on existing debootstrap and debootstrap-git packages
# Thank you to those contributors.

pkgname=debootstrap-devuan-git
pkgver=1.0.126+nmu1devuan1.r0.gf8c417b
pkgrel=1
pkgdesc="Bootstrap a basic Debian-derived devuan system"
arch=('any')
license=('GPL')
url="https://git.devuan.org/devuan/debootstrap"
conflicts=('debootstrap')
replaces=('debootstrap')
depends=('perl' 'wget' 'binutils')
source=(git+https://git.devuan.org/devuan/debootstrap.git
        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')
sha256sums=('SKIP'
	'2e37df02dbcdeeea3cc6dd440efaf28c9d03c45c357b6a170c3fa3b662e2b881')

pkgver() {
  cd debootstrap
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's|devuan/||'
}

prepare() {
  cd debootstrap

  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
  make DESTDIR="$pkgdir" install

  install -Dm644 debootstrap.8 "$pkgdir"/usr/share/man/man8/debootstrap.8
}