2021-12-27 21:41:54 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-tolino-shine2hd
|
|
|
|
pkgdesc="Tolino Shine 2 HD"
|
2023-01-17 18:25:07 +00:00
|
|
|
pkgver=0.4
|
|
|
|
pkgrel=0
|
2021-12-27 21:41:54 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
2022-08-18 18:18:22 +00:00
|
|
|
kobo-epdc-extractor
|
|
|
|
linux-kobo-clara-mainline
|
2021-12-27 21:41:54 +00:00
|
|
|
perl
|
|
|
|
postmarketos-base
|
|
|
|
u-boot-tolino-shine2hd
|
|
|
|
u-boot-tools
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2023-01-17 18:25:07 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2021-12-27 21:41:54 +00:00
|
|
|
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
uboot-script.cmd
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
mkimage -A arm -O linux -T script -n postmarketOS \
|
|
|
|
-d "$srcdir/uboot-script.cmd" "$srcdir/boot.scr"
|
|
|
|
install -Dm644 "$srcdir/boot.scr" "$pkgdir/boot/boot.scr"
|
|
|
|
}
|
|
|
|
|
2023-01-17 18:25:07 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="linux-firmware-brcm"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-12-27 21:41:54 +00:00
|
|
|
sha512sums="
|
2022-08-18 18:18:22 +00:00
|
|
|
525a4cd444cc450b3ea62ade25ba9f807f603a0f2a551e4ae40cc9065d82339ccdf9fd0d0f0625a066a3b83c441d7b5dc24cdd384b7cf5d9cfd8369627768f47 deviceinfo
|
2021-12-27 21:41:54 +00:00
|
|
|
3b5c33ffa9b81d55451fd4fa0c9ed69149304b88fb85752cead4d34b5467112029cc4883a91e7daa38f8cba55d90a814711b2c55a8d462d115b62f752ce311b7 uboot-script.cmd
|
|
|
|
"
|