62f0d60ef7
Add subpackages that automatically cause installation of the Vulkan and libva driver if packages using them get installed. This reduces the size of a minimal rootfs but still ensures those are present if needed. [ci:skip-build]: already built successfully in CI
84 lines
2 KiB
Text
84 lines
2 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
pkgname=device-asus-me176c
|
|
pkgdesc="ASUS MeMO Pad 7 (ME176C(X))"
|
|
pkgver=5
|
|
pkgrel=0
|
|
_commit=3155254999ac36c3051a2118c415de25a072c0f6
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="x86_64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
$pkgname-factory
|
|
alsa-ucm-conf
|
|
firmware-asus-me176c-acpi
|
|
intel-ucode
|
|
linux-asus-me176c
|
|
mesa-dri-classic
|
|
postmarketos-base
|
|
"
|
|
makedepends="devicepkg-dev meson eudev-dev"
|
|
source="https://github.com/me176c-dev/linux-me176c/archive/$_commit.tar.gz
|
|
deviceinfo
|
|
phoc.ini
|
|
"
|
|
subpackages="
|
|
$pkgname-factory
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
$pkgname-phosh
|
|
$pkgname-vulkan
|
|
$pkgname-libva
|
|
"
|
|
builddir="$srcdir/linux-me176c-$_commit"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
cd factory
|
|
abuild-meson . output \
|
|
-Dsystemd=false \
|
|
-Dopenrc=true
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
factory() {
|
|
pkgdesc="WiFi/BT MAC address loader"
|
|
depends="bluez-btmgmt"
|
|
cd "$builddir"/factory
|
|
DESTDIR="$subpkgdir" meson install -C output
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="WiFi, Bluetooth and Sound firmware"
|
|
depends="linux-firmware-intel firmware-asus-me176c"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
}
|
|
|
|
vulkan() {
|
|
install_if="$pkgname vulkan-loader"
|
|
depends="mesa-vulkan-intel"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
libva() {
|
|
install_if="$pkgname libva"
|
|
depends="libva-intel-driver"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz
|
|
c8bb189b08035e647e07dec120a6e166d871c17a227987387228c8bf6ff264e029f950c69bb560d3062cee0e27e4fb93449523592558108690a82c6d40931de1 deviceinfo
|
|
3823556d741a352fc7f43567d7218255a27c45c2c5d4d4bdf23f4d26ce2828c5a1c642519b84fef7f59756c990e6a199d72e6ba0c277939b08a40526c3ff3714 phoc.ini
|
|
"
|