2018-12-31 19:44:13 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-03-09 10:14:11 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-asus-me176c
|
2019-10-10 17:10:11 +00:00
|
|
|
pkgdesc="ASUS MeMO Pad 7 (ME176C(X))"
|
2022-05-28 11:36:32 +00:00
|
|
|
pkgver=6
|
2023-08-02 17:06:01 +00:00
|
|
|
pkgrel=2
|
2020-09-04 18:25:26 +00:00
|
|
|
_commit=3155254999ac36c3051a2118c415de25a072c0f6
|
2018-12-31 19:44:13 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="x86_64"
|
|
|
|
options="!check !archcheck"
|
2020-03-09 10:14:11 +00:00
|
|
|
depends="
|
|
|
|
$pkgname-factory
|
|
|
|
alsa-ucm-conf
|
2020-09-04 18:25:26 +00:00
|
|
|
intel-ucode
|
2022-05-28 11:36:32 +00:00
|
|
|
linux-edge
|
|
|
|
linux-firmware-none
|
2020-09-04 18:25:26 +00:00
|
|
|
postmarketos-base
|
2022-05-28 11:36:32 +00:00
|
|
|
sof-firmware
|
2020-09-04 18:25:26 +00:00
|
|
|
"
|
2019-10-10 17:10:11 +00:00
|
|
|
makedepends="devicepkg-dev meson eudev-dev"
|
2020-09-04 18:25:26 +00:00
|
|
|
source="https://github.com/me176c-dev/linux-me176c/archive/$_commit.tar.gz
|
2019-10-10 17:10:11 +00:00
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2022-05-28 11:36:32 +00:00
|
|
|
sof-workaround.conf
|
2020-09-04 18:25:26 +00:00
|
|
|
"
|
2022-06-05 12:21:31 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-factory
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-phosh
|
|
|
|
$pkgname-vulkan
|
|
|
|
$pkgname-libva
|
|
|
|
"
|
2020-09-04 18:25:26 +00:00
|
|
|
builddir="$srcdir/linux-me176c-$_commit"
|
2018-12-31 19:44:13 +00:00
|
|
|
|
2019-10-10 17:10:11 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
|
2020-09-04 18:25:26 +00:00
|
|
|
cd factory
|
|
|
|
abuild-meson . output \
|
|
|
|
-Dsystemd=false \
|
|
|
|
-Dopenrc=true
|
|
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
2019-10-10 17:10:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2022-05-28 11:36:32 +00:00
|
|
|
install -Dm644 "$srcdir"/sof-workaround.conf \
|
|
|
|
"$pkgdir"/etc/modprobe.d/sof-workaround.conf
|
2019-10-10 17:10:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
factory() {
|
|
|
|
pkgdesc="WiFi/BT MAC address loader"
|
|
|
|
depends="bluez-btmgmt"
|
2020-09-04 18:25:26 +00:00
|
|
|
cd "$builddir"/factory
|
|
|
|
DESTDIR="$subpkgdir" meson install -C output
|
2019-10-10 17:10:11 +00:00
|
|
|
}
|
|
|
|
|
2018-12-31 19:44:13 +00:00
|
|
|
nonfree_firmware() {
|
2022-05-28 11:36:32 +00:00
|
|
|
pkgdesc="WiFi/Bluetooth firmware"
|
|
|
|
depends="firmware-asus-me176c"
|
2018-12-31 19:44:13 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-03-20 16:39:02 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2021-03-20 16:39:02 +00:00
|
|
|
}
|
|
|
|
|
2022-06-05 12:21:31 +00:00
|
|
|
vulkan() {
|
|
|
|
install_if="$pkgname vulkan-loader"
|
|
|
|
depends="mesa-vulkan-intel"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
libva() {
|
|
|
|
install_if="$pkgname libva"
|
|
|
|
depends="libva-intel-driver"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
|
|
|
75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz
|
2023-08-02 17:06:01 +00:00
|
|
|
966d864a951e066180cf44131bfa866cae4f0a272f0f28a882a0af38d7698f7974744e1f34c631a7138f8f5204737d578b665d3010cf145badc0308630f52a40 deviceinfo
|
|
|
|
9e9998420a23ae5ff955e0c860913ace9b2228ddd4bb041b3fe86df4611572ed3303e9d483797b1381696094a99cb5f82b3812fe3287025607224bc6e138cbc5 modules-initfs
|
2022-05-05 14:50:55 +00:00
|
|
|
3823556d741a352fc7f43567d7218255a27c45c2c5d4d4bdf23f4d26ce2828c5a1c642519b84fef7f59756c990e6a199d72e6ba0c277939b08a40526c3ff3714 phoc.ini
|
2022-05-28 11:36:32 +00:00
|
|
|
3d0dd014ac7c2700c4ceb7adf549b96dd0eaa7e75bc4ebee7aab23dc31679edc822e9f6ab0e51a1500459e7f04683c00b5a5c600aa2e13a61697e415ad4a019d sof-workaround.conf
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|