pine64-pinephone: add -camera subpackage (MR 3815)

This commit is contained in:
Clayton Craft 2023-01-29 09:36:08 -08:00 committed by Oliver Smith
parent d49b2087e5
commit 5e9e19b7a7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -4,21 +4,22 @@
# Co-Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=device-pine64-pinephone
pkgver=0.45
pkgrel=0
pkgrel=1
pkgdesc="PINE64 PinePhone"
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
subpackages="
$pkgname-camera
$pkgname-gnome
$pkgname-kirigami:kirigami
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-shelli
$pkgname-plasma-mobile:plasma_mobile
$pkgname-sensorfw
$pkgname-shelli
$pkgname-upower
$pkgname-vccq-mod:vccq_mod
$pkgname-sensorfw
"
depends="
alsa-ucm-conf>=1.2.6.2
@ -172,6 +173,12 @@ nonfree_firmware() {
mkdir "$subpkgdir"
}
camera() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-default-camera"
depends="megapixels"
mkdir -p "$subpkgdir"
}
kirigami() {
install_if="$pkgname=$pkgver-r$pkgrel kirigami2"
install -Dm644 "$srcdir"/kirigami-lowpower.sh "$subpkgdir"/etc/profile.d/kirigami-lowpower.sh