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
|
2021-02-16 07:26:08 +00:00
|
|
|
pkgver=4
|
2021-07-07 05:06:17 +00:00
|
|
|
pkgrel=4
|
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"
|
2020-09-23 07:00:35 +00:00
|
|
|
depends="postmarketos-base 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
|
2020-09-27 09:16:53 +00:00
|
|
|
$pkgname-weston:weston
|
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
|
2020-09-27 09:16:53 +00:00
|
|
|
weston.ini
|
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"
|
|
|
|
depends="linux-samsung-i9100 mesa-dri-swrast"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel"
|
2021-02-16 07:26:08 +00:00
|
|
|
depends="linux-postmarketos-exynos4 mesa-dri-gallium 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() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-samsung-i9100"
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2020-09-27 09:16:53 +00:00
|
|
|
weston() {
|
|
|
|
install_if="$pkgname-kernel-mainline weston"
|
|
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
|
|
|
}
|
|
|
|
|
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="
|
2021-09-18 17:06:03 +00:00
|
|
|
3f9eea389812bb95efdc7921d50dc7589aafc70f7ad4ce7f2e16cda135ff2683ca07bfa899a000e9272ea7abf2cc28870782ade02f0a1f164dc6370e56918fa7 deviceinfo
|
2020-09-27 09:16:53 +00:00
|
|
|
089635daddd88eec35451bfe98dc3713035e3623c896dd21305b990ecf422e8fbb54e010cf347919bbb3a7385f639ab119280477fe0783df3228168d97d96fc6 90-android-touch-dev.rules
|
2021-06-13 14:53:15 +00:00
|
|
|
de794566118f1744d068a94e6a75b61d43f6749a4b0871a5270fa7a2048164d609c71fcffa61845c2a7dd4cb5fbeb72c0e4f8b73b382f36d6ff0bcc9b8a5ae25 weston.ini
|
|
|
|
d3f06476be583f095189557e5269866cfc9346ddbf8d78267d7562fad7f5eca6b09b81fd08cd9690ecf88105bafe8f3ebd9136b68ab5cdaa8bfff740a8bdf3d2 media-pipeline.initd
|
|
|
|
"
|