2020-01-10 16:45:30 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-04 10:30:51 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2020-08-04 09:46:27 +00:00
|
|
|
# Co-Maintainer: Daniele Debernardi <drebrez@gmail.com>
|
2017-07-25 20:08:35 +00:00
|
|
|
pkgname=device-qemu-amd64
|
2021-07-03 08:11:53 +00:00
|
|
|
pkgver=2.3
|
2021-07-07 05:06:17 +00:00
|
|
|
pkgrel=1
|
2020-03-06 13:01:14 +00:00
|
|
|
pkgdesc="Simulated device in QEMU (x86_64)"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2018-11-07 06:45:58 +00:00
|
|
|
arch="x86_64"
|
2017-07-25 20:08:35 +00:00
|
|
|
license="MIT"
|
2020-03-06 10:44:08 +00:00
|
|
|
depends="postmarketos-base mesa-dri-gallium"
|
2020-01-10 16:45:30 +00:00
|
|
|
makedepends="devicepkg-dev"
|
pmbootstrap init: kernel selection / remove linux-pmos-lts (#1363)
* As discussed in IRC/matrix, we're removing `linux-postmarketos-lts`
for now. The kernel isn't used right now, and we save lots of
maintenance effort with not updating it every week or so.
* new config option `"kernel"` with possible values:
`"downstream", "mainline", "stable"` (downstream is always
`linux-$devicename`)
* ask for the kernel during `pmbootstrap init` if the device package
has kernel subpackages and install it in `_install.py`
* postmarketos-mkinitfs: display note instead of exit with error when
the `deviceinfo_dtb` file is missing (because we expect it to be
missing for downstream kernels)
* device-sony-amami:
* add kernel subpackages for downstream, mainline
* set `deviceinfo_dtb`
* device-qemu-amd64: add kernel subpackages for stable, lts, mainline
* test cases and test data for new functions
* test case that checks all aports for right usage of the feature:
* don't mix specifying kernels in depends *and* subpackages
* 1 kernel in depends is maximum
* kernel subpackages must have a valid name
* Test if devices packages reference at least one kernel
* Remove `_build_device_depends_note()` which informs the user that
`--ignore-depends` can be used with device packages to avoid building
the kernel. The idea was to make the transition easier after a change
we did months ago, and now the kernel doesn't always get built before
building the device package so it's not relevant anymore.
* pmb/chroot/other.py:
* Add autoinstall=True to kernel_flavors_installed(). When the flag
is set, the function makes sure that at least one kernel for the
device is installed.
* Remove kernel_flavor_autodetect() function, wherever it was used,
it has been replaced with kernel_flavors_installed()[0].
* pmb.helpers.frontend.py: remove code to install at least one kernel,
kernel_flavors_installed() takes care of that now.
2018-04-03 23:50:09 +00:00
|
|
|
subpackages="
|
2021-04-21 09:08:17 +00:00
|
|
|
$pkgname-kernel-lts:kernel_lts
|
|
|
|
$pkgname-kernel-virt:kernel_virt
|
|
|
|
$pkgname-mce
|
2021-07-03 08:11:53 +00:00
|
|
|
$pkgname-sway
|
pmbootstrap init: kernel selection / remove linux-pmos-lts (#1363)
* As discussed in IRC/matrix, we're removing `linux-postmarketos-lts`
for now. The kernel isn't used right now, and we save lots of
maintenance effort with not updating it every week or so.
* new config option `"kernel"` with possible values:
`"downstream", "mainline", "stable"` (downstream is always
`linux-$devicename`)
* ask for the kernel during `pmbootstrap init` if the device package
has kernel subpackages and install it in `_install.py`
* postmarketos-mkinitfs: display note instead of exit with error when
the `deviceinfo_dtb` file is missing (because we expect it to be
missing for downstream kernels)
* device-sony-amami:
* add kernel subpackages for downstream, mainline
* set `deviceinfo_dtb`
* device-qemu-amd64: add kernel subpackages for stable, lts, mainline
* test cases and test data for new functions
* test case that checks all aports for right usage of the feature:
* don't mix specifying kernels in depends *and* subpackages
* 1 kernel in depends is maximum
* kernel subpackages must have a valid name
* Test if devices packages reference at least one kernel
* Remove `_build_device_depends_note()` which informs the user that
`--ignore-depends` can be used with device packages to avoid building
the kernel. The idea was to make the transition easier after a change
we did months ago, and now the kernel doesn't always get built before
building the device package so it's not relevant anymore.
* pmb/chroot/other.py:
* Add autoinstall=True to kernel_flavors_installed(). When the flag
is set, the function makes sure that at least one kernel for the
device is installed.
* Remove kernel_flavor_autodetect() function, wherever it was used,
it has been replaced with kernel_flavors_installed()[0].
* pmb.helpers.frontend.py: remove code to install at least one kernel,
kernel_flavors_installed() takes care of that now.
2018-04-03 23:50:09 +00:00
|
|
|
$pkgname-weston
|
2019-11-18 23:31:03 +00:00
|
|
|
$pkgname-xfce4
|
2021-04-21 09:08:17 +00:00
|
|
|
"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
mce-display-blanking.conf
|
|
|
|
weston.ini
|
|
|
|
"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2017-07-25 20:08:35 +00:00
|
|
|
|
2020-01-10 16:45:30 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-07-25 20:08:35 +00:00
|
|
|
package() {
|
2020-01-10 16:45:30 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-07-25 20:08:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-21 09:08:17 +00:00
|
|
|
mce() {
|
|
|
|
pkgdesc="Prevents screen blanking for UI's using mce (Glacier, Asteroid)"
|
2021-07-03 08:11:53 +00:00
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel mce"
|
2021-04-21 09:08:17 +00:00
|
|
|
install -Dm644 "$srcdir"/mce-display-blanking.conf \
|
|
|
|
"$subpkgdir"/etc/mce/50display-blanking.conf
|
|
|
|
}
|
|
|
|
|
2021-07-03 08:11:53 +00:00
|
|
|
sway() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel sway"
|
|
|
|
depends="postmarketos-ui-sway-logo-key-alt"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2017-10-20 00:07:00 +00:00
|
|
|
weston() {
|
2021-07-03 08:11:53 +00:00
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel weston"
|
2017-10-20 00:07:00 +00:00
|
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
|
|
|
}
|
|
|
|
|
2019-11-18 23:31:03 +00:00
|
|
|
xfce4() {
|
2021-07-03 08:11:53 +00:00
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-xfce4"
|
2019-11-18 23:31:03 +00:00
|
|
|
install="$subpkgname.post-install"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-02-13 16:27:28 +00:00
|
|
|
kernel_virt() {
|
2020-03-06 10:54:05 +00:00
|
|
|
pkgdesc="Alpine Virt kernel (minimal, no audio)"
|
2020-02-13 16:27:28 +00:00
|
|
|
depends="linux-virt"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_lts() {
|
|
|
|
pkgdesc="Alpine LTS kernel"
|
|
|
|
depends="linux-lts linux-firmware-none"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
|
|
|
a82b7e7a53de0032834f93401a339c075152dd04670e4fa565666538ada268c7e1b156a9990f865e5d629f18fa28326ed528f5bcc91441cf0c263676dcad336e deviceinfo
|
2021-04-21 09:08:17 +00:00
|
|
|
99d32eed6c5cda59e91516e982c5bd5165ff718133e2411a0dbba04e2057d1dfad49a75e5cc67140d0e0adcbe1383671bd2892335929b782a5b19f5472e635ad mce-display-blanking.conf
|
2021-07-07 05:06:17 +00:00
|
|
|
47b27c7572b8737988488f7eb23b9e68f9a944e22baafe1c78355d2514a2554cf41d99b29fca12238eb13a6f5d53f00ca89b94e534e8461ebab72256dcf0f142 weston.ini
|
|
|
|
"
|