device-huawei-y530: Modernize APKBUILD
This commit is contained in:
parent
38c3a4b111
commit
bb9ab3a9b3
4 changed files with 23 additions and 31 deletions
|
@ -1,7 +0,0 @@
|
||||||
# udev rules file
|
|
||||||
# All device names can be read from weston's logfile
|
|
||||||
|
|
||||||
# Touchscreen detection
|
|
||||||
SUBSYSTEM=="input", ATTRS{name}=="synaptics", \
|
|
||||||
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1"
|
|
||||||
|
|
|
@ -1,25 +1,23 @@
|
||||||
pkgname=device-huawei-y530
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
pkgver=1
|
pkgname="device-huawei-y530"
|
||||||
pkgrel=10
|
|
||||||
pkgdesc="Huawei Ascend Y530"
|
pkgdesc="Huawei Ascend Y530"
|
||||||
|
pkgver=1
|
||||||
|
pkgrel=11
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
arch="noarch"
|
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="postmarketos-base linux-huawei-y530 mkbootimg mesa-dri-swrast"
|
arch="noarch"
|
||||||
makedepends=""
|
|
||||||
install=""
|
|
||||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
||||||
source="
|
|
||||||
deviceinfo
|
|
||||||
90-touchscreen-dev.rules
|
|
||||||
"
|
|
||||||
options="!check"
|
options="!check"
|
||||||
|
depends="postmarketos-base linux-huawei-y530 mkbootimg mesa-dri-swrast"
|
||||||
|
makedepends="devicepkg-dev"
|
||||||
|
source="deviceinfo"
|
||||||
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
devicepkg_build $startdir $pkgname
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -D -m644 "$srcdir"/deviceinfo \
|
devicepkg_package $startdir $pkgname
|
||||||
"$pkgdir"/etc/deviceinfo
|
|
||||||
install -D -m644 "$srcdir"/90-touchscreen-dev.rules \
|
|
||||||
"$pkgdir"/etc/udev/rules.d/90-touchscreen-dev.rules
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nonfree_firmware() {
|
nonfree_firmware() {
|
||||||
|
@ -28,5 +26,4 @@ nonfree_firmware() {
|
||||||
mkdir "$subpkgdir"
|
mkdir "$subpkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="cbe2c1d166f202923462ffe254d16d335eb0c7d16bd2c2aabb3aa8947278ce276bbe440aa03fc5098f28fb029750c5869ef280b514e36268ef2b8c0b5022fa78 deviceinfo
|
sha512sums="c6d12a7869423b15b96938e05ca638b27a0e644ec4374978bfaacf9cf26d9bf6f4fa8a8e6bd708394ac0225fefe9f24b51a18b478730d1782cd64c5e6e0327f4 deviceinfo"
|
||||||
b2ebcd94e54b474d5a0d03f25af0d152583cddbb8ae8a70b72d65e96c9114a11fd535ffc964b23a0852fd541198c940fe6e867dafb6e6a8a12cb6fa5d1538d45 90-touchscreen-dev.rules"
|
|
||||||
|
|
|
@ -5,27 +5,28 @@ deviceinfo_format_version="0"
|
||||||
deviceinfo_name="Huawei Ascend Y530"
|
deviceinfo_name="Huawei Ascend Y530"
|
||||||
deviceinfo_manufacturer="Huawei"
|
deviceinfo_manufacturer="Huawei"
|
||||||
deviceinfo_date=""
|
deviceinfo_date=""
|
||||||
deviceinfo_nonfree="????"
|
|
||||||
deviceinfo_dtb=""
|
deviceinfo_dtb=""
|
||||||
deviceinfo_modules=""
|
|
||||||
deviceinfo_modules_initfs=""
|
deviceinfo_modules_initfs=""
|
||||||
deviceinfo_external_storage="true"
|
|
||||||
deviceinfo_flash_method="fastboot"
|
|
||||||
deviceinfo_arch="armhf"
|
deviceinfo_arch="armhf"
|
||||||
|
|
||||||
# Device related
|
# Device related
|
||||||
deviceinfo_keyboard="false"
|
deviceinfo_keyboard="false"
|
||||||
|
deviceinfo_external_storage="true"
|
||||||
deviceinfo_screen_width="480"
|
deviceinfo_screen_width="480"
|
||||||
deviceinfo_screen_height="854"
|
deviceinfo_screen_height="854"
|
||||||
deviceinfo_dev_touchscreen="/dev/input/event1"
|
deviceinfo_dev_touchscreen="/dev/input/event1"
|
||||||
|
deviceinfo_dev_touchscreen_calibration=""
|
||||||
|
deviceinfo_dev_keyboard=""
|
||||||
|
|
||||||
# Fastboot related
|
# Bootloader related
|
||||||
|
deviceinfo_flash_method="fastboot"
|
||||||
|
deviceinfo_kernel_cmdline=""
|
||||||
deviceinfo_generate_bootimg="true"
|
deviceinfo_generate_bootimg="true"
|
||||||
deviceinfo_bootimg_qcdt="true"
|
deviceinfo_bootimg_qcdt="true"
|
||||||
deviceinfo_kernel_cmdline=""
|
|
||||||
deviceinfo_flash_offset_base="0x00000000"
|
deviceinfo_flash_offset_base="0x00000000"
|
||||||
deviceinfo_flash_offset_kernel="0x00008000"
|
deviceinfo_flash_offset_kernel="0x00008000"
|
||||||
deviceinfo_flash_offset_ramdisk="0x02000000"
|
deviceinfo_flash_offset_ramdisk="0x02000000"
|
||||||
deviceinfo_flash_offset_second="0x00f00000"
|
deviceinfo_flash_offset_second="0x00f00000"
|
||||||
deviceinfo_flash_offset_tags="0x01e00000"
|
deviceinfo_flash_offset_tags="0x01e00000"
|
||||||
deviceinfo_flash_pagesize="2048"
|
deviceinfo_flash_pagesize="2048"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
pkgname="device-samsung-klte"
|
pkgname="device-samsung-klte"
|
||||||
pkgdesc="Samsung Galaxy S5"
|
pkgdesc="Samsung Galaxy S5"
|
||||||
pkgver=0.2
|
pkgver=0.2
|
||||||
|
|
Loading…
Reference in a new issue