APKBUILD 997 Bytes
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.9.1
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
6 7
pkgdesc="Meta package for minimal alpine base"
url="http://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

	# create /etc/issue
	cat >"$pkgdir"/etc/issue<<EOF
Welcome to Alpine Linux ${pkgver%.*}
Kernel \\r on an \\m (\\l)

32 33 34 35 36 37 38 39 40
EOF

	_ver="$(echo "$pkgver" | grep -E -o '^[0-9]+\.[0-9]+')"
	# create os-release
	cat >"$pkgdir"/etc/os-release<<EOF
NAME="Alpine Linux"
ID=alpine
VERSION_ID=$pkgver
PRETTY_NAME="Alpine Linux v$_ver"
41 42
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
43
EOF
44
}