pmaports/device/community/device-samsung-espresso3g/APKBUILD
Mighty 31f7a6d25f
device-samsung-espresso3g: enable automatic kernel upgrades (MR 2766)
Small tweaks:
* enable atomatic flashing of kernel to boot partition on upgrades
* remove rootston.ini
2021-12-19 20:25:26 +03:00

48 lines
1.5 KiB
Text

# 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=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base postmarketos-update-kernel linux-samsung-espresso3g mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo"
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="
41897ea67a1773023269a37aab57dc6a60e6804319ae329ce355cac464809c16699262dca1f4b1895b01e9e20bfc640ce3577ac0703a33ba2201555e4d0f28f9 deviceinfo
"