aboutsummaryrefslogtreecommitdiffstats
path: root/main/debootstrap/APKBUILD
blob: 27c4dac3c31491be3e384cc58be1ea2c11f84744 (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
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=debootstrap
pkgver=1.0.64
pkgrel=0
pkgdesc="Debian/Ubuntu bootstrap scripts"
url="http://packages.qa.debian.org/d/debootstrap.html"
arch="all"
license="GPL-2"
depends="dpkg tar"
source="http://ftp.de.debian.org/debian/pool/main/d/debootstrap/debootstrap_$pkgver.tar.xz
	pkgdetails.c"

_builddir="$srcdir"/debootstrap-$pkgver
build() {
	cd "$_builddir"
	gcc $CFLAGS $LDFLAGS -o pkgdetails "$srcdir"/pkgdetails.c
}

package() {
	cd "$_builddir"
	# create devices.tar.gz
	rm -rf dev
	mkdir -p dev
	chown 0:0 dev
	chmod 755 dev
	( cd dev 
		ln -s /proc/self/fd fd
		ln -s fd/0 stdin
		ln -s fd/1 stdout
		ln -s fd/2 stderr
		mknod full c 1 7
		mknod null c 1 3
		mknod ptmx c 5 2
		mkdir pts shm
		mknod random c 1 8
		mknod tty c 5 0
		mknod urandom c 1 9
		mknod zero c 1 5
	)
	tar -czf devices.tar.gz dev
	rm -rf dev
	make DESTDIR="$pkgdir" install || return
	install -Dm755 pkgdetails "$pkgdir"/usr/lib/debootstrap/pkgdetails
}
md5sums="536b1c6e53f65b9c0411a39a46d4b2cd  debootstrap_1.0.64.tar.xz
66b6fb6d862ba4886701c9b056088479  pkgdetails.c"
sha256sums="a84d896f1a1db5136ca100c26aab23dcc713745737fe730c0cefac87df7b2d7b  debootstrap_1.0.64.tar.xz
1cf1644e8400693fd41d378f972c15fa7b32f3282117ea967c995705256a84d6  pkgdetails.c"
sha512sums="ec548947cb6ad85b81b7b94a43d53d50c4f564f90437256aec8f448d01fda5042b84f81c6c15e5d9cbc912219546dac1e71ae1804e51b70443f102739cb72590  debootstrap_1.0.64.tar.xz
432313c8aef4974f21cb81b48d9f1c319692325f24a456e460e6f92c6a15ade7f29dfee4bf2ab3664c90b09d1f16e46cb8dd898ebd317f2547e63a64a773d971  pkgdetails.c"