main/postmarketos-base: add compatibility subpackage with alpine-baselayout-core

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6984>
This commit is contained in:
Pablo Correa Gómez 2025-08-28 22:34:41 +02:00 committed by The Friendly Merge Bot
parent f9011849a3
commit 4ecc7ec4e0
No known key found for this signature in database

View file

@ -1,6 +1,6 @@
pkgname=postmarketos-base
pkgver=48
pkgrel=0
pkgrel=1
pkgdesc="Meta package for minimal postmarketOS base"
url="https://postmarketos.org"
arch="noarch"
@ -31,6 +31,7 @@ _pmb_recommends="
install="$pkgname.post-install $pkgname.post-upgrade"
triggers="$pkgname.trigger=/usr/share/deviceinfo"
subpackages="
$pkgname-core
$pkgname-mesa
$pkgname-nftables
$pkgname-nftables-openrc:nftables_openrc
@ -132,6 +133,24 @@ package() {
done
}
core() {
# This is needed for backwards compatibility with installs that got
# the alpine-baselayout-core package in world:
# https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2680
# as if alpine-baselayout-core is removed, the symlinks will disappear.
pkgdesc="Minimal structure for compatibility reasons"
depends=""
replaces="alpine-baselayout"
provides="alpine-baselayout-core=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"
cd "$subpkgdir"
install -m 0755 -d usr/bin usr/lib usr/sbin
ln -s usr/bin "$subpkgdir"/bin
ln -s usr/lib "$subpkgdir"/lib
ln -s usr/sbin "$subpkgdir"/sbin
}
mesa() {
replaces=""
depends="mesa-dri-gallium mesa-gles"