e8fd6d6635
With the pmbootstrap change let's change the deviceinfo variable names to the non-deprecated version. [ci:ignore-count] [ci:skip-build]: already built successfully in CI
63 lines
2 KiB
Text
63 lines
2 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-samsung-grandpplte
|
|
pkgdesc="Samsung Galaxy Grand Prime Plus"
|
|
pkgver=2
|
|
pkgrel=3
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
dtc
|
|
linux-postmarketos-mediatek-mt6735
|
|
mkbootimg
|
|
mt6735-bootshim
|
|
postmarketos-base
|
|
u-boot-grandpplte
|
|
u-boot-tools
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
boot.cmd
|
|
boot-image.its
|
|
deviceinfo
|
|
phoc.ini
|
|
samsung,grandpplte.json
|
|
"
|
|
subpackages="$pkgname-phosh"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
cat "/boot/bootshim" "/usr/share/u-boot/grandpplte/u-boot.bin" \
|
|
> "$startdir/u-boot-shimmed.bin"
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
mkdir -p "$pkgdir/usr/share/u-boot/grandpplte/"
|
|
install -Dm644 "$startdir/u-boot-shimmed.bin" \
|
|
"$pkgdir/usr/share/u-boot/grandpplte/"
|
|
install -Dm644 "$srcdir/boot.cmd" \
|
|
"$pkgdir/usr/share/u-boot/grandpplte/"
|
|
install -D -m644 "$srcdir/boot-image.its" \
|
|
"$pkgdir/usr/share/u-boot/grandpplte/"
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname=$pkgver-r$pkgrel phosh"
|
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
install -Dm644 "$srcdir/samsung,grandpplte.json" \
|
|
"$subpkgdir/usr/share/feedbackd/themes/samsung,grandpplte.json"
|
|
}
|
|
|
|
sha512sums="
|
|
96c119dab3b4445da4d9732fde2aef5b4cf2491b2b23c622dc91b4bacaa100eefff39b67289f7e8f0d110e5de96e55a64d4212c77463e50f73a1de877c43d632 boot.cmd
|
|
8226a99856b5613c5f4a9bb4314c1bfad676126df1260381baf40b92b201aa460522998b87b1b50b7ce31cd688d023d3bf4bae0977d7d586268c63e719e6770a boot-image.its
|
|
82e4acdf0b6428cd75f8f80e085ebc5ea5906b3d0819fca12e289b1c8c2c41cb7cddd7cf221a02a33e9c162c44064c68646420de6c531a294e6d071f7e32711e deviceinfo
|
|
57ff51fdf94882e303c9cd301891a4c9de0e4604d73b17ae855d84410802b9a91b47045c136f62a002134549b179d55ad8da096d4ffbe79430dceea9b18ccebd phoc.ini
|
|
9845b869b9499c8477d83dc1da5eb05d3f9cecb6a773638a148c149cb09016427dd87e5fe9c23e37bd184442a7a4fefb05b1c930142b0e682794f6c805f85819 samsung,grandpplte.json
|
|
"
|