Commit a7e15158 authored by Natanael Copa's avatar Natanael Copa

==== snapshot 3.10_alpha20190227 ====

parent 4e2cd040
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-base
pkgver=3.9.0
pkgver=3.10_alpha20190227
pkgrel=0
pkgdesc="Meta package for minimal alpine base"
url="http://alpinelinux.org"
......@@ -23,21 +23,28 @@ package() {
mkdir -p "$pkgdir"/etc
# create /etc/alpine-release
echo $pkgver > "$pkgdir"/etc/alpine-release
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
# create /etc/issue
cat >"$pkgdir"/etc/issue<<EOF
Welcome to Alpine Linux ${pkgver%.*}
Welcome to Alpine Linux $_ver
Kernel \\r on an \\m (\\l)
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"
PRETTY_NAME="Alpine Linux $_rel"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment