pmaports/device/device-asus-me176c/APKBUILD
lambdadroid fe4bd3ab4d
asus-me176c: rework packages (!699)
device/device-asus-me176c:
  - Install me176c-factory to apply correct MAC addresses for
    WiFi and BT
  - Use FAT32 for boot partition. This allows flashing the boot
    partition directly as ESP (EFI System Partition).
  - Overall cleanup

device/linux-asus-me176c:
  - Update kernel fork to 4.19.80
  - Cleanup APKBUILD
  - Stop building patched ACPI DSDT table directly into kernel

firmware/firmware-asus-me176c:
  - Package WiFi firmware

firmware/firmware-asus-me176c-acpi:
  - New package for the patched ACPI DSDT table
  -> Separate from firmware-asus-me176c because it is always required,
     (not optional)

[ci:skip-build]: runs into timeout
2019-11-03 15:58:37 +01:00

61 lines
1.6 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-asus-me176c"
pkgdesc="ASUS MeMO Pad 7 (ME176C(X))"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
options="!check !archcheck"
depends="postmarketos-base linux-asus-me176c firmware-asus-me176c-acpi $pkgname-factory intel-ucode mesa-dri-intel"
makedepends="devicepkg-dev meson eudev-dev"
_commit=3155254999ac36c3051a2118c415de25a072c0f6
source="
deviceinfo
https://github.com/me176c-dev/linux-me176c/archive/$_commit.tar.gz
"
subpackages="
$pkgname-factory
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-x11
"
build() {
devicepkg_build $startdir $pkgname
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
-Dsystemd=false -Dopenrc=true \
linux-me176c-$_commit/factory build-factory
ninja -C build-factory
}
package() {
devicepkg_package $startdir $pkgname
}
factory() {
pkgdesc="WiFi/BT MAC address loader"
depends="bluez-btmgmt"
DESTDIR="$subpkgdir" ninja -C "$srcdir"/build-factory install
}
x11() {
install_if="$pkgname xorg-server"
depends="xf86-video-intel"
mkdir "$subpkgdir"
}
nonfree_firmware() {
pkgdesc="WiFi, Bluetooth and Sound firmware"
depends="linux-firmware-intel firmware-asus-me176c"
mkdir "$subpkgdir"
}
sha512sums="3a329f76237c5fcacc194892a32855d6b4b724f8320d0a43594ceafdba8a447706b590b290bc927256365bc65eeeb300579ee000e99ba7c9acb19cbb12ead56f deviceinfo
75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz"