2018-12-31 19:44:13 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-01-10 16:20:16 +00:00
|
|
|
# Contributor: Mis012 <michael.srba@seznam.cz>
|
2020-01-28 20:15:44 +00:00
|
|
|
# Contributor: Minecrell <minecrell@minecrell.net>
|
2020-03-09 10:14:11 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2018-12-31 19:44:13 +00:00
|
|
|
pkgname="device-asus-me176c"
|
2019-10-10 17:10:11 +00:00
|
|
|
pkgdesc="ASUS MeMO Pad 7 (ME176C(X))"
|
2020-03-09 10:14:11 +00:00
|
|
|
pkgver=2
|
|
|
|
pkgrel=0
|
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="
|
|
|
|
postmarketos-base
|
|
|
|
linux-asus-me176c
|
|
|
|
firmware-asus-me176c-acpi intel-ucode
|
|
|
|
$pkgname-factory
|
|
|
|
mesa-dri-classic mesa-vulkan-intel
|
|
|
|
alsa-ucm-conf
|
|
|
|
"
|
2019-10-10 17:10:11 +00:00
|
|
|
makedepends="devicepkg-dev meson eudev-dev"
|
|
|
|
|
|
|
|
_commit=3155254999ac36c3051a2118c415de25a072c0f6
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
https://github.com/me176c-dev/linux-me176c/archive/$_commit.tar.gz
|
|
|
|
"
|
2018-12-31 19:44:13 +00:00
|
|
|
subpackages="
|
2019-10-10 17:10:11 +00:00
|
|
|
$pkgname-factory
|
2018-12-31 19:44:13 +00:00
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
|
|
|
|
2019-10-10 17:10:11 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
|
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
2020-03-09 10:14:11 +00:00
|
|
|
--buildtype=plain \
|
2019-10-10 17:10:11 +00:00
|
|
|
-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
|
|
|
|
}
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2020-03-09 10:15:29 +00:00
|
|
|
sha512sums="69636f0e921ebd161333c19ad264cab088bb14fd07f19d4f6e691c02b50977532bda4535c092e530f4477bdd356f20e834b898256822eddfd27bf6de5ef82c8f deviceinfo
|
2019-10-10 17:10:11 +00:00
|
|
|
75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz"
|