2021-09-26 15:26:38 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Newbyte <newbyte@disroot.org>
|
|
|
|
pkgname=device-samsung-m0
|
|
|
|
pkgdesc="Samsung Galaxy S III"
|
2024-04-02 10:55:46 +00:00
|
|
|
pkgver=7
|
2024-06-18 20:13:17 +00:00
|
|
|
pkgrel=2
|
2021-09-26 15:26:38 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
2022-02-13 19:01:47 +00:00
|
|
|
alsa-ucm-conf
|
2021-09-26 15:26:38 +00:00
|
|
|
linux-postmarketos-exynos4
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
2024-06-18 20:13:17 +00:00
|
|
|
postmarketos-initramfs-minimal
|
2022-04-05 21:36:02 +00:00
|
|
|
soc-samsung-exynos4412-haptics
|
2021-09-26 15:26:38 +00:00
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
install="$pkgname.post-install"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2022-02-13 19:01:47 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
ucm/Midas.conf
|
|
|
|
ucm/HiFi.conf
|
2022-03-23 12:35:23 +00:00
|
|
|
modules-load.conf
|
2022-02-13 19:01:47 +00:00
|
|
|
"
|
2021-09-26 15:26:38 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2022-02-13 19:01:47 +00:00
|
|
|
|
|
|
|
_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:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2023-07-29 19:49:49 +00:00
|
|
|
pkgdesc="WiFi, Bluetooth, MFC firmware"
|
2022-02-19 22:25:05 +00:00
|
|
|
depends="
|
|
|
|
firmware-samsung-midas-bluetooth
|
|
|
|
firmware-samsung-midas-wifi
|
2023-07-29 19:49:49 +00:00
|
|
|
linux-firmware-s5p-mfc
|
2022-02-19 22:25:05 +00:00
|
|
|
"
|
2021-09-26 15:26:38 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-04-11 17:36:49 +00:00
|
|
|
d745aabeda081c66056a35605cb352994050a1f53ba4570f16690a1670d20c2a39da5abbdc115acb925a933c8c16118b8ed7757da48cfe87779261d8d06b1d24 deviceinfo
|
2022-02-13 19:01:47 +00:00
|
|
|
caa81e8ab6753c0ca24c22fb6742288765dfbf2469b8b8c35c5789edfcee546ef1c3b14ad6e540c417f434258399300f17d312b58157635eafab134587ef94cc Midas.conf
|
2022-05-06 18:09:58 +00:00
|
|
|
21f64c9104ec5780fffde8ba7ce57583592469694d07dd5e2de4173d7c9f99ba57fb28bb5bcfbbce921be9c4ead9d31980e948533162fe12424c2037145debb1 HiFi.conf
|
2022-03-23 12:35:23 +00:00
|
|
|
56a2bdffc273cb0a581192e65378ff50e71c7bc8a696af7d5e7c165a53c005aae104c4514c68afb668454c5a94ce78bd509f8a40e3401d67e16636b1ed81d051 modules-load.conf
|
2021-09-26 15:26:38 +00:00
|
|
|
"
|