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))"
|
2021-03-20 16:39:02 +00:00
|
|
|
pkgver=3
|
2021-07-07 05:06:17 +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
|
|
|
firmware-asus-me176c-acpi
|
|
|
|
intel-ucode
|
|
|
|
linux-asus-me176c
|
|
|
|
mesa-dri-classic
|
|
|
|
mesa-vulkan-intel
|
|
|
|
postmarketos-base
|
|
|
|
"
|
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
|
2021-03-20 16:39:02 +00:00
|
|
|
rootston.ini
|
2020-09-04 18:25:26 +00:00
|
|
|
"
|
2021-03-20 16:39:02 +00:00
|
|
|
subpackages="$pkgname-factory $pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh"
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
2019-10-10 17:10:11 +00:00
|
|
|
pkgdesc="WiFi, Bluetooth and Sound firmware"
|
|
|
|
depends="linux-firmware-intel 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"
|
|
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/rootston.ini
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
|
|
|
75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz
|
2021-09-18 17:06:03 +00:00
|
|
|
8dfeb1d928aa3ac94e9015d4b98713ec4d56eab68a7aee8cb7ce6a877b3d015670800bae456190ae57bcb35047738de5559460f2f7b785987f1394b605119ae5 deviceinfo
|
2021-07-07 05:06:17 +00:00
|
|
|
a60d1785f0163d4a4eb63ea5e3017631aab7dd6683baad6a74b09809d33888d581ca8b14526c19d18234dcf727d1fdb4ff0489ed4bd5523905d0e4da7d93bc56 rootston.ini
|
|
|
|
"
|