pmaports/device/testing/device-sony-nicki/APKBUILD
Minecrell a85db1dc7b
*: remove "Contributor:" lines from APKBUILDs (MR 1203)
At the moment we have Contributor: lines on some packages (but not all of them),
but often they don't represent the actual contributors to the package very well.
E.g. when we added them retroactively to the device packages we only added
the initial contributor (which isn't necessarily the person
who made most of the work for a device...)

The Git history is the most representative source for figuring out
who contributed to a package, so there is no reason to duplicate that
into the APKBUILD.

[skip ci]: way too many packages
2020-05-02 21:45:25 +03:00

54 lines
2.2 KiB
Text
Executable file

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-sony-nicki
pkgdesc="Sony Xperia M"
pkgver=0.1
pkgrel=6
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base mkbootimg mesa-dri-swrast mdss-fb-init-hack msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo 90-android-touch-dev.rules screen-workaround.sh fb.modes pointercal"
subpackages="
$pkgname-kernel-downstream:kernel_downstream
$pkgname-kernel-mainline:kernel_mainline
"
build() {
devicepkg_build $startdir $pkgname
}
kernel_downstream() {
pkgdesc="LineageOS downstream kernel (recommended)"
depends="linux-sony-nicki"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_mainline() {
pkgdesc="Mainline kernel (do not use - only for development!)"
depends="linux-sony-nicki-mainline"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
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
#I have no idea what it does but it's included in sony-yuga and
#if I do same on here, segfaults stop appearing in dmesg
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
}
sha512sums="dc8a2eee63de2d228f357f1eda804481af10b4152c12dcbc97d481cbe2bf3ad8071c05ea56b54829194b33b14a602d1f72eaf355de2b05d572c6deefa9ddd472 deviceinfo
a3d3a0cf43c5f216279666143d6042f2669dbe3dc5ecec2817b6118a0c122f5b927799b37432bee3167359c118d0142fd8e8e8d67374e8ab1d837673f217e1ae 90-android-touch-dev.rules
336b6ac90946ec4b4626e9dcb8f1cce503d0ad6fc164177e53502b580aa509dc31ae2ef4fcb9fb04906576cdd6590f625f127e2c29ec61493e30cb6508fdb68d screen-workaround.sh
aac9a5d4c856b6feaf4f2961251fbc81d9173e24c3b20806e803711b40e388a173abf2651d5d828d36a504ef2de12c1c1eacea1f1b9479e31f55234012140405 fb.modes
016111b7618e2509186fd91dd238cdfb51c37a02af98ba01d3cf27358ff901f71f7ff5e798752334e720bf8108b907a31e9242085c8c915748f2d9391f86dfc4 pointercal"