APKBUILD 1.09 KB
Newer Older
1
2
3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-base
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=3.11_rc1
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
6
pkgdesc="Meta package for minimal alpine base"
Natanael Copa's avatar
Natanael Copa committed
7
url="https://alpinelinux.org"
8
arch="noarch"
Natanael Copa's avatar
Natanael Copa committed
9
license="MIT"
10
depends="alpine-baselayout alpine-conf apk-tools busybox busybox-suid busybox-initscripts
11
	openrc libc-utils alpine-keys"
12
13
14
makedepends=""
install=""
subpackages=""
15
replaces="alpine-baselayout"
16
source=""
17
18

build() {
19
20
21
22
	return 0
}

package() {
23
	mkdir -p "$pkgdir"/etc
24
	# create /etc/alpine-release
25
	echo $pkgver > "$pkgdir"/etc/alpine-release
26
27
28
29
30
31
32
33
	local _ver="$(echo "$pkgver" | grep -E -o '^[0-9]+\.[0-9]+')"
	local _rel="v$_ver"
	case "$pkgver" in
	*_alpha*|*_beta*|*_pre*)
		_ver="$pkgver (edge)"
		_rel="edge"
		;;
	esac
34
35
36

	# create /etc/issue
	cat >"$pkgdir"/etc/issue<<EOF
37
Welcome to Alpine Linux $_ver
38
39
Kernel \\r on an \\m (\\l)

40
41
42
43
44
45
46
EOF

	# create os-release
	cat >"$pkgdir"/etc/os-release<<EOF
NAME="Alpine Linux"
ID=alpine
VERSION_ID=$pkgver
47
PRETTY_NAME="Alpine Linux $_rel"
48
49
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
50
EOF
51
}