pmaports/device/community/linux-purism-librem5/APKBUILD
clayton craft e067004579
linux-purism-librem5: upgrade to 5.9.12+purism5.1 (MR 1791)
[ci:skip-build]: already built successfully
2020-12-06 18:01:13 -08:00

67 lines
2 KiB
Text

# Reference: <https://postmarketos.org/vendorkernel>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=linux-purism-librem5
pkgver=5.9.12
pkgrel=0
_purismrel=1
# <kernel ver>.<purism kernel release>
_purismver=${pkgver}+librem5.$_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
$_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="2b3a325aa56100e0d6ddcbdc5ac0472e01d51887a33570f23c3ee99abc2e697d59a1e7ffc32527aaaa6d882d6d1a8641b9aaf0f1df48f55979a3f0e315a8fc00 linux-purism-librem5-5.9.12+librem5.1.tar.gz
9870bff4b187188b519b23264c2634ee4232011fed6d2f66a7b4971db354ac3dffa0e1552bd0dc953c66ec622e18ce8899fdbcfba94f60867fc5004d6da96753 8f11380ec32912370b8ae9134a0387a6f18862f7.patch
3e74dfcb545577dd61a1367cdf57bbbd7a3f70ec62ffe47c5a4d125a528e2ff2724534bb431cdc7ec2e63fef8ee5aa8559e5ac56ffd7bd1432386027c35c7c54 config-purism-librem5.aarch64"