70 lines
1.9 KiB
Text
70 lines
1.9 KiB
Text
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
pkgname=postmarketos-ondev
|
|
pkgver=0.2.0
|
|
pkgrel=0
|
|
pkgdesc="Calamares based on-device installer"
|
|
url="https://postmarketos.org"
|
|
arch="all !armhf" # blocked by qt5-qtdeclarative
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
$pkgname-openrc
|
|
calamares
|
|
calamares-mod-mount
|
|
calamares-mod-shellprocess
|
|
calamares-mod-unpackfs
|
|
e2fsprogs
|
|
i3wm
|
|
kirigami2
|
|
lightdm
|
|
lightdm-openrc
|
|
mesa-egl
|
|
plasma-phone-components-vkbd-style
|
|
qt5-qtvirtualkeyboard
|
|
unclutter-xfixes
|
|
xorg-server
|
|
"
|
|
makedepends="
|
|
calamares-dev
|
|
qt5-qtquickcontrols2-dev
|
|
qt5-qtsvg-dev
|
|
"
|
|
subpackages="$pkgname-openrc"
|
|
install="$pkgname.post-install"
|
|
source="https://gitlab.com/postmarketOS/postmarketos-ondev/-/archive/$pkgver/postmarketos-ondev-$pkgver.tar.bz2
|
|
postmarketos-ondev.initd
|
|
"
|
|
options="!check" # has no tests
|
|
|
|
build() {
|
|
cd calamares
|
|
cmake -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=True \
|
|
-DCMAKE_BUILD_TYPE=None
|
|
make -C build
|
|
}
|
|
|
|
package() {
|
|
# Calamares modules (don't conflict with official modules)
|
|
make -C calamares/build DESTDIR="$pkgdir" install
|
|
mv "$pkgdir/usr/lib/calamares/modules" \
|
|
"$pkgdir/usr/lib/calamares/modules-pmos"
|
|
|
|
# Calamares configs
|
|
mkdir -p "$pkgdir/etc"
|
|
cp -r "$builddir/calamares/config/" "$pkgdir/etc/calamares"
|
|
|
|
# Scripts
|
|
install -Dm755 "$builddir/ondev-prepare.sh" \
|
|
"$pkgdir/usr/bin/ondev-prepare"
|
|
install -Dm755 "$builddir/ondev-boot.sh" \
|
|
"$pkgdir/usr/bin/ondev-boot"
|
|
|
|
# OpenRC
|
|
install -Dm755 "$srcdir/postmarketos-ondev.initd" \
|
|
"$pkgdir/etc/init.d/postmarketos-ondev"
|
|
}
|
|
|
|
sha512sums="f1a6572266c7516e2c6af93c04592873322def83a44077c11b7112fe90b5132985b37856dc2b243bce2ccb47da5e86f7dd497d1f91a278957e1bc2d66244d406 postmarketos-ondev-0.2.0.tar.bz2
|
|
eff2c9f4ddcc7d22d8afd4c5d1cac92f6e6e9fef7713af2370dae715819ca2aba2d33b1cd0ea0478526c503dfc6948fee2242b6d804f8e9dcd6ef5cf1500fc7f postmarketos-ondev.initd"
|