pmaports/device/device-sony-aries/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

29 lines
1.1 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Contributor: SaiKarthik Karra
pkgname=device-sony-aries
pkgver=1
pkgrel=21
pkgdesc="Sony Xperia Z3 Compact"
url="https://postmarketos.org"
arch="armhf"
license="MIT"
depends="postmarketos-base linux-sony-aries mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo 90-android-touch-dev.rules fb-workaround.sh"
options="!check !archcheck"
build() {
devicepkg_build $startdir $pkgname
}
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"/fb-workaround.sh \
"$pkgdir"/etc/profile.d/fb-workaround.sh
}
sha512sums="12ddf2b539f6d530215af7499988e468789ddcbba832352689598c44204d0ce1048a53b2ff090383165941e0da975214eaf7244782cdd602a9b01daeef802a99 deviceinfo
8b6034c0338ab4c7d648f47983aad6da07e427e7dba47baabf85a1b3ddeeda47c8d7fbcd547a302c9a759b2943ee30d3e82c3b368d8582833a058e4671638a9e 90-android-touch-dev.rules
bdb4100f6abb893afe5f2d5e06f18b88dd3e6e7191d3af429abb9216fc6850d6ddd33c939c6ea5943cfa88a7e8b1231766c5c4ca9db55180531e4172e0299b6a fb-workaround.sh"