52 lines
1.4 KiB
Text
52 lines
1.4 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-samsung-i9100
|
|
pkgver=2
|
|
pkgrel=0
|
|
pkgdesc="Samsung Galaxy SII"
|
|
url="https://postmarketos.org"
|
|
arch="armv7"
|
|
license="MIT"
|
|
depends="postmarketos-base libsamsung-ipc"
|
|
makedepends="devicepkg-dev"
|
|
install="$pkgname.post-install"
|
|
options="!check !archcheck"
|
|
subpackages="
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
"
|
|
source="
|
|
deviceinfo
|
|
90-android-touch-dev.rules
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
|
}
|
|
|
|
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"
|
|
depends="linux-samsung-i9100-mainline mesa-dri-gallium"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Wifi firmware"
|
|
depends="firmware-samsung-i9100"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="2ae133ce0126b38ee05e62f3cf560d1b336816928c2fd896686bd8b64fcab1920a1b0270df1a844dc7b977948308a02110f88b82225ee0f0cbcab17b9fa10a3d deviceinfo
|
|
089635daddd88eec35451bfe98dc3713035e3623c896dd21305b990ecf422e8fbb54e010cf347919bbb3a7385f639ab119280477fe0783df3228168d97d96fc6 90-android-touch-dev.rules"
|