# Reference: # Maintainer: Clayton Craft pkgname=linux-purism-librem5 pkgver=5.11.0 pkgrel=0 _purismrel=1 # . _purismver=${pkgver}pureos$_purismrel pkgdesc="Purism Librem 5 phone kernel fork" arch="aarch64" _carch="arm64" _flavor="purism-librem5" url="https://source.puri.sm/Librem5/linux-next" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native" makedepends=" bash bc bison devicepkg-dev elfutils-dev findutils flex gmp-dev installkernel linux-headers openssl-dev perl sed " # Source _repository="linux-next" # kconfig generated with: ARCH=arm64 make defconfig KBUILD_DEFCONFIG=librem5_defconfig _config="config-$_flavor.$arch" source=" $pkgname-$_purismver.tar.gz::https://source.puri.sm/Librem5/$_repository/-/archive/pureos/$_purismver/$_repository-pureos-$_purismver.tar.gz 8f11380ec32912370b8ae9134a0387a6f18862f7.patch 0001-Revert-arm64-dts-librem5-Drop-separte-DP-device-tree.patch $_config " builddir="$srcdir/$_repository-pureos-$_purismver" prepare() { default_prepare REPLACE_GCCH=0 \ . downstreamkernel_prepare } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \ LOCALVERSION=".$_purismrel" } package() { downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" make modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb" } sha512sums="9e50bb6a443c63c1989484e1e7e6428482ee31b378965044828ea2aed604c631f14eedce7f54fc01b48ce1275912a84251484ac373e3385f515e6a54bc508582 linux-purism-librem5-5.11.0pureos1.tar.gz 9870bff4b187188b519b23264c2634ee4232011fed6d2f66a7b4971db354ac3dffa0e1552bd0dc953c66ec622e18ce8899fdbcfba94f60867fc5004d6da96753 8f11380ec32912370b8ae9134a0387a6f18862f7.patch 5baae99010bde62e253fdd56f21ba096c217ba2ab9c367c80b34bc0f445a79a8fb8b5d14682f71ad6061d73c81fc16a608f4be037d792978dbbaf74267844260 0001-Revert-arm64-dts-librem5-Drop-separte-DP-device-tree.patch b41dc60afab81f9f7c7f4788bf9554cecd7e5da8f1ada502e2097667769437340112a8b5f77199bc28f627343558386aae08586fcdb977b76c3b677f24eba782 config-purism-librem5.aarch64"