pmaports/device/device-samsung-i8200/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

30 lines
820 B
Text

# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Ashymad <czilukim@o2.pl>
pkgname="device-samsung-i8200"
pkgdesc="Samsung SIII mini Value Edition"
pkgver=0.1
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-i8200 mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
nonfree_firmware() {
pkgdesc="Wi-Fi and bluetooth firmware"
depends="linux-firmware-mrvl"
mkdir "$subpkgdir"
}
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="494a84bfeeb08280900233d5c1f7a49b8ec0b8c44b1ac31e86b029c982cb67006a3c2b5454a851b025fd28c2c00404a2ff00f9d6e31c18700e4a46e94c4836ca deviceinfo"