diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-27 14:40:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-27 15:04:53 +0000 |
commit | a7e15158cb4f718e1e608538c5c11a79051c399d (patch) | |
tree | 4ce707212c47d547634ef5cfab63325b81ccb57a /main/alpine-base | |
parent | 4e2cd04081d8201902ea22778487c962451d7e19 (diff) | |
download | aports-a7e15158cb4f718e1e608538c5c11a79051c399d.tar.bz2 aports-a7e15158cb4f718e1e608538c5c11a79051c399d.tar.xz |
==== snapshot 3.10_alpha20190227 ====v20190227
Diffstat (limited to 'main/alpine-base')
-rw-r--r-- | main/alpine-base/APKBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/main/alpine-base/APKBUILD b/main/alpine-base/APKBUILD index f892edfc66..1ebfe784ed 100644 --- a/main/alpine-base/APKBUILD +++ b/main/alpine-base/APKBUILD @@ -1,7 +1,7 @@ # 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 |