pmaports/device/testing/device-samsung-m3/APKBUILD

61 lines
1.7 KiB
Text
Raw Normal View History

2021-09-26 15:26:56 +00:00
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Henrik Grimler <henrik@grimler.se>
2021-09-26 15:26:56 +00:00
pkgname=device-samsung-m3
pkgdesc="Samsung Galaxy S III LTE"
pkgver=6.2
pkgrel=2
2021-09-26 15:26:56 +00:00
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
alsa-ucm-conf
2021-09-26 15:26:56 +00:00
linux-postmarketos-exynos4
mkbootimg
postmarketos-base
postmarketos-update-kernel
soc-samsung-exynos4412-haptics
2021-09-26 15:26:56 +00:00
"
makedepends="devicepkg-dev"
install="$pkgname.post-install"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
deviceinfo
ucm/Midas.conf
ucm/HiFi.conf
modules-load.conf
"
2021-09-26 15:26:56 +00:00
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
_midas_audio_dir="$pkgdir/usr/share/alsa/ucm2/conf.d/Midas"
# Alsa UCM configs
install -Dm644 "$srcdir"/Midas.conf \
-t "$_midas_audio_dir"
install -Dm644 "$srcdir"/HiFi.conf \
-t "$_midas_audio_dir"
2021-09-26 15:26:56 +00:00
}
nonfree_firmware() {
pkgdesc="WiFi, Bluetooth, MFC firmware"
depends="
firmware-samsung-midas-bluetooth
firmware-samsung-midas-wifi
linux-firmware-s5p-mfc
"
2021-09-26 15:26:56 +00:00
mkdir "$subpkgdir"
}
sha512sums="
4674bb08bce234140144a6cb5f22eb7095367bf01b8976b33f122c78459b79f181d39acd9fa0a15f183a43729d0838143d4027665fa753c38d04dce13e3eacec deviceinfo
caa81e8ab6753c0ca24c22fb6742288765dfbf2469b8b8c35c5789edfcee546ef1c3b14ad6e540c417f434258399300f17d312b58157635eafab134587ef94cc Midas.conf
21f64c9104ec5780fffde8ba7ce57583592469694d07dd5e2de4173d7c9f99ba57fb28bb5bcfbbce921be9c4ead9d31980e948533162fe12424c2037145debb1 HiFi.conf
56a2bdffc273cb0a581192e65378ff50e71c7bc8a696af7d5e7c165a53c005aae104c4514c68afb668454c5a94ce78bd509f8a40e3401d67e16636b1ed81d051 modules-load.conf
2021-09-26 15:26:56 +00:00
"