2020-01-10 10:32:51 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Contributor: shwsh <thatweirdbear@tuta.io>
|
2017-11-29 21:16:02 +00:00
|
|
|
pkgname="device-lenovo-karate"
|
|
|
|
pkgdesc="Lenovo K6 Power"
|
|
|
|
pkgver=0.1
|
2020-01-28 14:40:18 +00:00
|
|
|
pkgrel=10
|
2017-11-29 21:16:02 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2018-11-07 06:45:58 +00:00
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2018-02-26 22:11:44 +00:00
|
|
|
depends="postmarketos-base linux-lenovo-karate mkbootimg mdss-fb-init-hack mesa-dri-swrast"
|
2020-01-10 10:32:51 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2017-11-29 21:16:02 +00:00
|
|
|
source="deviceinfo 90-android-touch-dev.rules"
|
2018-02-26 22:11:44 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2017-11-29 21:16:02 +00:00
|
|
|
|
2020-01-10 10:32:51 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-11-29 21:16:02 +00:00
|
|
|
package() {
|
2020-01-10 10:32:51 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-11-29 21:16:02 +00:00
|
|
|
install -Dm755 "$srcdir"/90-android-touch-dev.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
depends="firmware-lenovo-karate"
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-03-07 18:48:29 +00:00
|
|
|
sha512sums="705196cf1b5bfe57967e18e26997c8e36cbd831c69f68d145476bb90d0dd63b38839b93e752a9572c73e1520001fc45820fdedb4e1ebbe6a767e3f1279ee48a3 deviceinfo
|
2017-11-29 21:16:02 +00:00
|
|
|
25086c95c67c27151112efac1dcf7792589c990cc0a93ee910654445a3f9cc66c4a5ab656b3256224b39c49fe104540757cc36abf9de19f47c28c4fa82c4f552 90-android-touch-dev.rules"
|