blob: 8c6e260ef82a6a16590f5a1766ff5f2ab0e2fc46 (
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
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgname=debootstrap-pureos
_gitpkgname="${pkgname%-pureos}"
pkgver=1.0.134pureos1
pkgrel=1
pkgdesc='Bootstrap a basic Debian system. Custom version, required to build PureOS.'
arch=('any')
url='https://source.puri.sm/pureos/core/debootstrap'
license=('GPL-2.0-only')
depends=('bash' 'binutils' 'perl' 'wget')
provides=('debootstrap')
conflicts=('debootstrap')
options=('!debug' '!strip')
source=(
"${_gitpkgname}-${pkgver}.tar.gz::https://source.puri.sm/pureos/core/debootstrap/-/archive/${pkgver}/debootstrap-${pkgver}.tar.gz"
'arch-detect.patch'
)
sha512sums=(
'3d9d59f659a55295608db860ba48a6355107ed687eaee4f0505ccc0fc350aa3278d4f4c9caff6dc9ff7d5df072fa5ef759f6ac5533fd9e6f5bd7d9c79cdeccbf'
'd70a9d096d1692f71970cc818515bd783a6031bfe2d2857134eabf6fd36e4137152ebafa8e2d4ae7c8cb442c8532cd4192715b286e38b4d947b0b467e9ed54a5'
)
prepare() {
cd "${_gitpkgname}-${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 "${_gitpkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 debootstrap.8 "${pkgdir}"/usr/share/man/man8/debootstrap.8
}
|