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)"
|
2021-11-19 12:53:46 +00:00
|
|
|
pkgver=0.2
|
2021-11-02 11:34:32 +00:00
|
|
|
pkgrel=0
|
2021-08-11 07:26:53 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="postmarketos-base linux-samsung-espresso3g mkbootimg"
|
|
|
|
makedepends="devicepkg-dev"
|
2021-11-19 13:29:30 +00:00
|
|
|
source="deviceinfo rootston.ini"
|
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
|
|
|
|
}
|
|
|
|
|
2021-08-11 07:26:53 +00:00
|
|
|
sha512sums="
|
2021-09-12 09:46:16 +00:00
|
|
|
9fa446ae99b5d22bb211cb455ef78d0567463650e0a85beb9125f4bc56531b74d1690304770afa7886f26852b81f668d36add71fa3f7b840d0650e8b5483257a deviceinfo
|
2021-11-19 13:29:30 +00:00
|
|
|
70bd4dc8c6d7a8fcd2fcf86a9b728a5eb02c4b97a730dc3cd4a6c5dafb2ddcc71082dce89495d23cd1da8404bf2688a4a3f9e7f0f2d328157d275ce4b7f49429 rootston.ini
|
2021-08-11 07:26:53 +00:00
|
|
|
"
|