pmaports/device/device-google-crosshatch/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

39 lines
1.1 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Zhuowei Zhang <zhuoweizhang@yahoo.com>
pkgname="device-google-crosshatch"
pkgdesc="Google Pixel 3 XL"
pkgver=0.1
pkgrel=6
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
$pkgname-kernel-downstream:kernel_downstream
$pkgname-kernel-mainline:kernel_mainline
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_downstream() {
pkgdesc="LineageOS downstream kernel (recommended)"
depends="linux-google-crosshatch"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_mainline() {
pkgdesc="Attempt at mainlining. DO NOT USE: doesn't work (only USB networking is supported)"
depends="linux-google-crosshatch-mainline firmware-google-crosshatch-mainline-dtbo"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="c4122bf7cae468b656884678f64f1bd8fb2e5d9c07fc44a777831864efea2eefdc84329cb0e498de4e7ad40787fbf4ea76846bc7a142747d006afd5ea16847d3 deviceinfo"