2020-01-10 16:49:40 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgname=device-samsung-i9100
|
2024-04-19 12:32:25 +00:00
|
|
|
pkgver=7
|
2024-06-18 20:13:42 +00:00
|
|
|
pkgrel=1
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="Samsung Galaxy SII"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2020-03-17 22:58:50 +00:00
|
|
|
arch="armv7"
|
2017-05-31 17:10:29 +00:00
|
|
|
license="MIT"
|
2024-06-18 20:13:42 +00:00
|
|
|
depends="postmarketos-base postmarketos-initramfs-minimal libsamsung-ipc"
|
2020-01-10 16:49:40 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2017-09-14 18:18:12 +00:00
|
|
|
install="$pkgname.post-install"
|
2020-09-23 07:00:35 +00:00
|
|
|
options="!check !archcheck"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2021-06-20 11:03:11 +00:00
|
|
|
$pkgname-nonfree-firmware-front-camera:nonfree_firmware_front_camera
|
2021-06-13 14:53:15 +00:00
|
|
|
$pkgname-media-pipeline:media_pipeline
|
2020-09-23 07:00:35 +00:00
|
|
|
"
|
2017-09-14 18:18:12 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
90-android-touch-dev.rules
|
2021-06-13 14:53:15 +00:00
|
|
|
media-pipeline.initd
|
2017-09-14 18:18:12 +00:00
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2020-01-10 16:49:40 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
package() {
|
2020-01-10 16:49:40 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-09-11 15:29:22 +00:00
|
|
|
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
2020-09-23 07:00:35 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="linux-samsung-i9100"
|
2020-09-23 07:00:35 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="linux-postmarketos-exynos4 mesa-egl"
|
2020-10-25 01:49:31 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
2023-07-29 19:50:03 +00:00
|
|
|
pkgdesc="Wifi, MFC firmware"
|
|
|
|
depends="firmware-samsung-i9100 linux-firmware-s5p-mfc"
|
2018-02-26 22:11:44 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-06-20 11:03:11 +00:00
|
|
|
nonfree_firmware_front_camera() {
|
|
|
|
pkgdesc="Front camera firmware"
|
|
|
|
install_if="$pkgname-kernel-mainline"
|
|
|
|
depends="firmware-samsung-s5k5baf"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-06-13 14:53:15 +00:00
|
|
|
media_pipeline() {
|
|
|
|
install_if="$pkgname-kernel-mainline"
|
|
|
|
depends="v4l-utils"
|
|
|
|
install="$subpkgname.post-install"
|
|
|
|
install -Dm755 "$srcdir"/media-pipeline.initd "$subpkgdir"/etc/init.d/media-pipeline
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-04-19 12:32:25 +00:00
|
|
|
bd4090078a2816d620a9cb8b91823c6ae28af3d80ccf51a9a36757ce5a4337e799bada6516ce9b1bc63bf5e0732c248cf5078b6c056cecd6c05b4659ff197847 deviceinfo
|
2020-09-27 09:16:53 +00:00
|
|
|
089635daddd88eec35451bfe98dc3713035e3623c896dd21305b990ecf422e8fbb54e010cf347919bbb3a7385f639ab119280477fe0783df3228168d97d96fc6 90-android-touch-dev.rules
|
2021-06-13 14:53:15 +00:00
|
|
|
d3f06476be583f095189557e5269866cfc9346ddbf8d78267d7562fad7f5eca6b09b81fd08cd9690ecf88105bafe8f3ebd9136b68ab5cdaa8bfff740a8bdf3d2 media-pipeline.initd
|
|
|
|
"
|