2018-07-03 21:45:17 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-sony-nicki
|
2018-07-03 21:45:17 +00:00
|
|
|
pkgdesc="Sony Xperia M"
|
2024-01-28 16:10:28 +00:00
|
|
|
pkgver=0.2
|
|
|
|
pkgrel=0
|
2018-07-03 21:45:17 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2019-01-12 12:26:44 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="postmarketos-base mkbootimg mdss-fb-init-hack msm-fb-refresher"
|
2018-07-03 21:45:17 +00:00
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="deviceinfo 90-android-touch-dev.rules screen-workaround.sh fb.modes pointercal"
|
2019-09-20 21:23:33 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
"
|
2018-07-03 21:45:17 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2019-09-20 21:23:33 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="LineageOS downstream kernel (recommended)"
|
2024-01-28 16:10:28 +00:00
|
|
|
depends="linux-sony-nicki postmarketos-base-downstream-disable-udev-v4l"
|
2019-09-20 21:23:33 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to mainline; do not use - only for development!"
|
2019-09-20 21:23:33 +00:00
|
|
|
depends="linux-sony-nicki-mainline"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2018-07-03 21:45:17 +00:00
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
|
|
|
install -D -m644 "$srcdir"/screen-workaround.sh \
|
|
|
|
"$pkgdir"/etc/profile.d/screen-workaround.sh
|
|
|
|
install -D -m644 "$srcdir"/fb.modes \
|
|
|
|
"$pkgdir"/etc/fb.modes
|
|
|
|
install -D -m644 "$srcdir"/pointercal \
|
|
|
|
"$pkgdir"/etc/pointercal
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
|
|
|
1dcaf110caf4c2faa7b55b033621555b158e9243bbbb1418af64ad614f5dac582180e21e307bfe1160c5eb39cf7e99bcd04ba0dd11377c6315b9d2bbd145e72a deviceinfo
|
2018-07-03 21:45:17 +00:00
|
|
|
a3d3a0cf43c5f216279666143d6042f2669dbe3dc5ecec2817b6118a0c122f5b927799b37432bee3167359c118d0142fd8e8e8d67374e8ab1d837673f217e1ae 90-android-touch-dev.rules
|
2019-06-25 07:12:10 +00:00
|
|
|
336b6ac90946ec4b4626e9dcb8f1cce503d0ad6fc164177e53502b580aa509dc31ae2ef4fcb9fb04906576cdd6590f625f127e2c29ec61493e30cb6508fdb68d screen-workaround.sh
|
2018-07-03 21:45:17 +00:00
|
|
|
aac9a5d4c856b6feaf4f2961251fbc81d9173e24c3b20806e803711b40e388a173abf2651d5d828d36a504ef2de12c1c1eacea1f1b9479e31f55234012140405 fb.modes
|
2021-09-18 17:06:03 +00:00
|
|
|
016111b7618e2509186fd91dd238cdfb51c37a02af98ba01d3cf27358ff901f71f7ff5e798752334e720bf8108b907a31e9242085c8c915748f2d9391f86dfc4 pointercal
|
|
|
|
"
|