# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=alpine-base pkgver=3.18.0 pkgrel=1 pkgdesc="Meta package for minimal alpine base" url="https://alpinelinux.org" arch="noarch" license="MIT" depends=" alpine-baselayout alpine-conf alpine-release apk-tools busybox busybox-mdev-openrc busybox-openrc busybox-suid libc-utils openrc " subpackages="alpine-release:release" replaces="alpine-baselayout" options="!check" build() { return 0 } package() { mkdir -p "$pkgdir" } release() { depends="alpine-keys" pkgdesc="Alpine release data" mkdir -p "$subpkgdir"/etc # create /etc/alpine-release echo $pkgver > "$subpkgdir"/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 >"$subpkgdir"/etc/issue<"$subpkgdir"/etc/os-release<"$subpkgdir"/etc/secfixes.d/alpine<