2021-08-11 07:26:53 +00:00
|
|
|
# Maintainer: Mighty17 <mightymb17@gmail.com>
|
|
|
|
# Co-Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-samsung-espresso3g
|
2021-11-22 07:41:27 +00:00
|
|
|
pkgdesc="Samsung Galaxy Tab 2 (7.0 inch)"
|
2022-01-06 08:10:01 +00:00
|
|
|
pkgver=3
|
2022-01-20 22:01:52 +00:00
|
|
|
pkgrel=1
|
2021-08-11 07:26:53 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
2021-12-18 04:58:32 +00:00
|
|
|
depends="postmarketos-base postmarketos-update-kernel linux-samsung-espresso3g mkbootimg"
|
2021-08-11 07:26:53 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2022-01-06 08:10:01 +00:00
|
|
|
source="deviceinfo xorg.conf"
|
2021-11-22 07:41:27 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-userland:nonfree_userland"
|
2021-08-11 07:26:53 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2021-11-22 07:41:27 +00:00
|
|
|
pkgdesc="$pkgdesc (WiFi firmware)"
|
2021-08-11 07:26:53 +00:00
|
|
|
depends="firmware-samsung-espresso3g"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-11-22 07:41:27 +00:00
|
|
|
nonfree_userland() {
|
|
|
|
# Patched wlroots is also necessary for accelerated phosh and sway.
|
|
|
|
# See https://gitlab.com/antoni.aloytorrens/p-wlroots and https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2573.
|
|
|
|
# Unfortunately, such workarounds are not accepted in pmOS.
|
|
|
|
pkgdesc="$pkgdesc (GPU userspace libraries)"
|
|
|
|
depends="mesa-pvr-dri-classic sgx-ddk-um sgx-ddk-um-openrc sgx-ddk-um-ti443x"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-11-02 11:34:32 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2021-11-19 13:29:30 +00:00
|
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
2021-11-02 11:34:32 +00:00
|
|
|
"$subpkgdir"/usr/share/phosh/phoc.ini
|
|
|
|
}
|
|
|
|
|
2022-01-06 08:10:01 +00:00
|
|
|
x11() {
|
|
|
|
install_if="$pkgname xorg-server"
|
|
|
|
install -Dm644 "$srcdir"/xorg.conf \
|
|
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/99-modesetting.conf
|
|
|
|
}
|
|
|
|
|
2021-08-11 07:26:53 +00:00
|
|
|
sha512sums="
|
2021-12-18 04:58:32 +00:00
|
|
|
41897ea67a1773023269a37aab57dc6a60e6804319ae329ce355cac464809c16699262dca1f4b1895b01e9e20bfc640ce3577ac0703a33ba2201555e4d0f28f9 deviceinfo
|
2022-01-06 08:10:01 +00:00
|
|
|
41f0d61da6f5029be51396fdcdc91aa241c47825adc32cc03f81d1c2ada633f1e293a03dd3ed75a7e8c3e2d960aec889ecdb3af7db5f106444c06f4f6c45debd xorg.conf
|
2021-08-11 07:26:53 +00:00
|
|
|
"
|