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-04-11 15:59:52 +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"
|
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
|
2020-09-27 09:16:53 +00:00
|
|
|
$pkgname-weston:weston
|
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
|
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"
|
|
|
|
}
|
|
|
|
|
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-02-16 07:26:08 +00:00
|
|
|
sha512sums="fbd32402a31e132fbe25fd03572a62069d7b592c738821279941c8ca799e2489096e77faad8741f3bbacbb2999dfaed756e43bdfd1b76112c29b29b872d87d30 deviceinfo
|
2020-09-27 09:16:53 +00:00
|
|
|
089635daddd88eec35451bfe98dc3713035e3623c896dd21305b990ecf422e8fbb54e010cf347919bbb3a7385f639ab119280477fe0783df3228168d97d96fc6 90-android-touch-dev.rules
|
|
|
|
de794566118f1744d068a94e6a75b61d43f6749a4b0871a5270fa7a2048164d609c71fcffa61845c2a7dd4cb5fbeb72c0e4f8b73b382f36d6ff0bcc9b8a5ae25 weston.ini"
|