pmaports/device/community/device-samsung-espresso3g/APKBUILD

50 lines
1.6 KiB
Text
Raw Normal View History

# Maintainer: Mighty17 <mightymb17@gmail.com>
# Co-Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-espresso3g
pkgdesc="Samsung Galaxy Tab 2 (7.0 inch)"
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-espresso3g mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo rootston.ini"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-userland:nonfree_userland"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="$pkgdesc (WiFi firmware)"
depends="firmware-samsung-espresso3g"
mkdir "$subpkgdir"
}
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"
}
phosh() {
install_if="$pkgname postmarketos-ui-phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/usr/share/phosh/phoc.ini
}
sha512sums="
9fa446ae99b5d22bb211cb455ef78d0567463650e0a85beb9125f4bc56531b74d1690304770afa7886f26852b81f668d36add71fa3f7b840d0650e8b5483257a deviceinfo
70bd4dc8c6d7a8fcd2fcf86a9b728a5eb02c4b97a730dc3cd4a6c5dafb2ddcc71082dce89495d23cd1da8404bf2688a4a3f9e7f0f2d328157d275ce4b7f49429 rootston.ini
"