2018-02-05 19:58:08 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-xiaomi-armani
|
2018-02-05 19:58:08 +00:00
|
|
|
pkgdesc="Redmi 1S"
|
2023-12-12 07:29:24 +00:00
|
|
|
pkgver=1
|
2024-01-21 22:56:08 +00:00
|
|
|
pkgrel=1
|
2018-02-05 19:58:08 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2018-11-07 06:45:58 +00:00
|
|
|
arch="armhf"
|
|
|
|
options="!check !archcheck"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="postmarketos-base linux-xiaomi-armani mkbootimg msm-fb-refresher"
|
2018-02-05 19:58:08 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2018-03-29 04:00:01 +00:00
|
|
|
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
|
2018-02-26 22:11:44 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2018-02-05 19:58:08 +00:00
|
|
|
source="deviceinfo
|
|
|
|
90-touchscreen.rules
|
|
|
|
100-charging.rules
|
|
|
|
armani_battery_charging.sh
|
|
|
|
armani_battery_discharging.sh
|
|
|
|
wlanarmani
|
2018-03-29 04:00:01 +00:00
|
|
|
fb.modes"
|
2018-02-05 19:58:08 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -Dm644 "$srcdir"/90-touchscreen.rules "$pkgdir"/etc/udev/rules.d/90-touchscreen.rules
|
|
|
|
install -Dm644 "$srcdir"/100-charging.rules "$pkgdir"/etc/udev/rules.d/100-charging.rules
|
|
|
|
install -Dm744 "$srcdir"/armani_battery_charging.sh "$pkgdir"/usr/bin/armani_battery_charging.sh
|
|
|
|
install -Dm744 "$srcdir"/armani_battery_discharging.sh "$pkgdir"/usr/bin/armani_battery_discharging.sh
|
|
|
|
install -Dm755 "$srcdir"/wlanarmani "$pkgdir"/etc/init.d/wlanarmani
|
2018-03-29 04:00:01 +00:00
|
|
|
install -Dm755 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
|
2018-02-05 19:58:08 +00:00
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-xiaomi-armani"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
|
|
|
c215c71f60d9d83da085daf4dae4e56fb65575438c7a01e8bdc64be62b34b9a090645d39403a58460d454fa86891d30596eaa49890c932c420434cb359d3ef9e deviceinfo
|
2018-02-05 19:58:08 +00:00
|
|
|
abf694ebe949025268630457ad14ae69f6a33c151236c1a193da32c27f836591e932517f011f6eb7ce750ab74d2f1e9a70724fed7150210d4da1b80a6e86a801 90-touchscreen.rules
|
|
|
|
862f9a8d81af74c0a1c99c6255d4ec9d4bdd7828636ee29fbaf4b3ceef53f236fd2b2078e3150baf0f1d78a3da87d7b3a5b975fef33014238eb7658428642571 100-charging.rules
|
2022-10-14 11:46:40 +00:00
|
|
|
8d06a86877c3b6f12e98d7509e634014e790c1356b6b0dd6e86859365588d899f6d94652abc9b749a4ae648abffb4cd39778c27535812d86b589f7f71e2cfdf7 armani_battery_charging.sh
|
2018-02-05 19:58:08 +00:00
|
|
|
c2ae3887712a209a8c8dc60ee87ff1ec8944246cc1a69d1f6f9f2725434e05b6c8388c0b3756423d5cec6a6e0ffc7272c30ccc20b77f0dac0813bb25476d4997 armani_battery_discharging.sh
|
2023-12-12 07:29:24 +00:00
|
|
|
501fbd47a2302ba9320fcdba81c4d6b806d2ded3e0fa70ab486fc0ff6501216f702d4724ef2878df2d7deef5eb1f66b42a04981804e7cfe3b4dc6dbee2be0ce5 wlanarmani
|
2021-09-18 17:06:03 +00:00
|
|
|
cf2b75e766f6ed5b7372179dfe160ecf1fa24a1c4f054abacc98e69794db90ca2c7f686325f7ce806b102c8eb93a345da3c016b17f280eda47f5891322162362 fb.modes
|
|
|
|
"
|