52 lines
1.0 KiB
Plaintext
52 lines
1.0 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=alpine-base
|
|
pkgver=3.14.0
|
|
pkgrel=0
|
|
pkgdesc="Meta package for minimal alpine base"
|
|
url="https://alpinelinux.org"
|
|
arch="noarch"
|
|
license="MIT"
|
|
options="!check"
|
|
depends="
|
|
alpine-baselayout
|
|
apk-tools
|
|
alpine-keys
|
|
busybox
|
|
busybox-initscripts
|
|
openrc
|
|
musl
|
|
"
|
|
|
|
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 $_ver
|
|
Kernel \\r on an \\m (\\l)
|
|
|
|
EOF
|
|
|
|
# create os-release
|
|
cat >"$pkgdir"/etc/os-release<<EOF
|
|
NAME="Alpine Linux"
|
|
ID=alpine
|
|
VERSION_ID=$pkgver
|
|
PRETTY_NAME="Alpine Linux $_rel"
|
|
HOME_URL="https://alpinelinux.org/"
|
|
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
|
|
EOF
|
|
}
|