| 1 | # Contributor: Natanael Copa <[email protected]> |
| 2 | # Maintainer: Natanael Copa <[email protected]> |
| 3 | pkgname=alpine-base |
| 4 | pkgver=3.12.0_rc1 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="Meta package for minimal alpine base" |
| 7 | url="https://alpinelinux.org" |
| 8 | arch="noarch" |
| 9 | license="MIT" |
| 10 | depends="alpine-baselayout alpine-conf apk-tools busybox busybox-suid busybox-initscripts |
| 11 | openrc libc-utils alpine-keys" |
| 12 | makedepends="" |
| 13 | install="" |
| 14 | subpackages="" |
| 15 | replaces="alpine-baselayout" |
| 16 | source="" |
| 17 | |
| 18 | build() { |
| 19 | return 0 |
| 20 | } |
| 21 | |
| 22 | package() { |
| 23 | mkdir -p "$pkgdir"/etc |
| 24 | # create /etc/alpine-release |
| 25 | echo $pkgver > "$pkgdir"/etc/alpine-release |
| 26 | local _ver="$(echo "$pkgver" | grep -E -o '^[0-9]+\.[0-9]+')" |
| 27 | local _rel="v$_ver" |
| 28 | case "$pkgver" in |
| 29 | *_alpha*|*_beta*|*_pre*) |
| 30 | _ver="$pkgver (edge)" |
| 31 | _rel="edge" |
| 32 | ;; |
| 33 | esac |
| 34 | |
| 35 | # create /etc/issue |
| 36 | cat >"$pkgdir"/etc/issue<<EOF |
| 37 | Welcome to Alpine Linux $_ver |
| 38 | Kernel \\r on an \\m (\\l) |
| 39 | |
| 40 | EOF |
| 41 | |
| 42 | # create os-release |
| 43 | cat >"$pkgdir"/etc/os-release<<EOF |
| 44 | NAME="Alpine Linux" |
| 45 | ID=alpine |
| 46 | VERSION_ID=$pkgver |
| 47 | PRETTY_NAME="Alpine Linux $_rel" |
| 48 | HOME_URL="https://alpinelinux.org/" |
| 49 | BUG_REPORT_URL="https://bugs.alpinelinux.org/" |
| 50 | EOF |
| 51 | } |