| 1 | # Contributor: Natanael Copa <[email protected]> |
| 2 | # Maintainer: Natanael Copa <[email protected]> |
| 3 | pkgname=alpine-base |
| 4 | pkgver=3.4.3 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="Meta package for minimal alpine base" |
| 7 | url="http://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 | |
| 27 | # create /etc/issue |
| 28 | cat >"$pkgdir"/etc/issue<<EOF |
| 29 | Welcome to Alpine Linux ${pkgver%.*} |
| 30 | Kernel \\r on an \\m (\\l) |
| 31 | |
| 32 | EOF |
| 33 | |
| 34 | _ver="$(echo "$pkgver" | grep -E -o '^[0-9]+\.[0-9]+')" |
| 35 | # create os-release |
| 36 | cat >"$pkgdir"/etc/os-release<<EOF |
| 37 | NAME="Alpine Linux" |
| 38 | ID=alpine |
| 39 | VERSION_ID=$pkgver |
| 40 | PRETTY_NAME="Alpine Linux v$_ver" |
| 41 | HOME_URL="http://alpinelinux.org" |
| 42 | BUG_REPORT_URL="http://bugs.alpinelinux.org" |
| 43 | EOF |
| 44 | } |