# Reference: pkgname=device-motorola-smi pkgdesc="Motorola RAZR i" pkgver=0.2 pkgrel=2 url="https://postmarketos.org" license="MIT" arch="x86" options="!check !archcheck" depends=" linux-postmarketos-intel-medfield mkbootimg postmarketos-base watchdog-kick petitboot-motorola-smi " makedepends="devicepkg-dev" subpackages=" $pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh " source=" deviceinfo gsk-renderer-cairo.sh phoc.ini " build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname install -Dm755 "$srcdir"/gsk-renderer-cairo.sh -t \ "$pkgdir"/etc/profile.d/ } nonfree_firmware() { pkgdesc="Wifi firmware" depends="linux-firmware-ti-connectivity" replaces="linux-firmware-ti-connectivity" mkdir -p "$subpkgdir"/lib/firmware/ti-connectivity ln -s wl128x-nvs.bin "$subpkgdir"/lib/firmware/ti-connectivity/wl127x-nvs.bin } phosh() { install_if="$pkgname=$pkgver-r$pkgrel phosh" install -Dm644 "$srcdir"/phoc.ini \ "$subpkgdir"/etc/phosh/phoc.ini } sha512sums=" 5d9a029642aeff54d4d4a4b51442b3371caf7f7333ad85fa4c233f16d6874e122fa8ec43a7e434a69655810a07eb3ddbfad1204dc451e6381b56215dc0daee53 deviceinfo 3f1422115c9a12f94b6fb7cc4e987f25ea331a9c7cbc34649470bc5557dfc85b79cbc4369e48f12f284ed1e20af6194d8bbb3c5e37227a7d9bc3e6670cd41aa9 gsk-renderer-cairo.sh 9263024be649673b4c94094fb0807fd2597cfe9b7042902df71b843eb507912ef8df9fd476811db275b11ec2b1a9c6b45eb90cb6a85d699f45666e0cee8d6553 phoc.ini "