pmaports/device/device-hisense-m470bsa/APKBUILD
Minecrell de2bba9e58
device/device-*: automatically add deviceinfo_year from wiki (!1036)
Download: https://wiki.postmarketos.org/index.php?title=Special:CargoExport&tables=Devices&&fields=Codename%2C+Released&&group+by=Codename&order+by=%60Codename%60%2C+%60Released%60&limit=5000&format=csv

cd device
for device in device-*; do
	year=$(grep -oP "${device#device-},\K2\d{3}" ../results.csv)
	[[ -n "$year" ]] || continue
	sed -i "s/deviceinfo_date=\"\"/deviceinfo_year=\"$year\"/" "$device/deviceinfo"
done

devices=$(git ls-files -m -- . | xargs dirname | sort -u | xargs echo)
pmbootstrap checksum $devices
2020-03-09 10:06:06 +01:00

37 lines
1.3 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Hunter Sell <hsell25@gmail.com>
pkgname="device-hisense-m470bsa"
pkgdesc="Hisense Sero 7 Pro"
pkgver=0.1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-hisense-m470bsa mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo modules-load.conf pointercal"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/modules-load.conf \
"$pkgdir"/etc/modules-load.d/01-$pkgname.conf
install -Dm644 "$srcdir"/pointercal \
"$pkgdir"/etc/pointercal
}
nonfree_firmware() {
pkgdesc="WiFi Firmware"
depends="firmware-hisense-m470bsa"
mkdir "$subpkgdir"
}
sha512sums="79a69c5c576859995b43305b22b156c9b182dbdd82dd73f5be7a83fbec05c75096e862a7e2da44c8bcbfc0333fb6a22792c9d5e144a868907d647902a7d50c27 deviceinfo
6a53747e22b530dcd52ca523017edf422b36bcd6616d7b0df0ba23f50de0f91dff63913ec6aab5051eebc131879c235cfb724aacefc90a10b94a1790985144ec modules-load.conf
8fcb7330a660995bb1aabf3fd2f3a3536fed79e9369bda115874151e84651839c59d134ac3ca0919eff0770ac51c934b252e7d544a26c076614f7f1d10bfd016 pointercal"