pmaports/device/testing/linux-pine64-pinetab2/APKBUILD
Stefan Hansson f5dd18d657
pine64-pinetab2: add co-maintainership (MR 5336)
I use the PineTab 2 for various tasks on a semi-regular basis, so I
would like to co-maintain it.

---

[ci:skip-vercheck]:
Since this doesn't affect the resulting package as Co-Maintainer is a
postmarketOS schema extension that abuild doesn't read, there is no need
to bump pkgrel for this.
[ci:skip-build]: already built successfully in CI
2024-07-11 21:16:16 +02:00

71 lines
1.9 KiB
Text

# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/pinetab2_defconfig
# Maintainer: Danct12 <danct12@disroot.org>
# Co-Maintainer: Stefan Hansson <newbyte@postmarketos.org>
pkgname=linux-pine64-pinetab2
pkgver=6.9.8
_danctnix_kernel_rel=2
pkgrel=0
pkgdesc="Pine64 PineTab 2 mainline"
arch="aarch64"
_carch="arm64"
_flavor="pine64-pinetab2"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native"
depends="kmod"
makedepends="
bash
bison
findutils
flex
linux-headers
postmarketos-installkernel
openssl-dev
perl
xz
zstd
"
# Source
_tags="v$pkgver-danctnix$_danctnix_kernel_rel"
_config="config-$_flavor.$arch"
source="
$pkgname-$_tags.tar.gz::https://github.com/dreemurrs-embedded/linux-pinetab2/archive/$_tags.tar.gz
$_config
"
builddir="$srcdir/linux-pinetab2-${_tags:1}"
_outdir="out"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
}
package() {
install -Dm644 "$builddir/arch/$_carch/boot/Image" \
"$pkgdir/boot/vmlinuz"
make modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot/ \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
install -D "$builddir"/include/config/kernel.release \
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
}
sha512sums="
65bfeb9d718f8105b46bdfffabb9fd4ac69ad969c912c342ab4b56fc652b1cc06550acd805a6df08b204e4860be344185641495e576a9753abd9e3d88ab220bc linux-pine64-pinetab2-v6.9.8-danctnix2.tar.gz
7053b57f5e6f1b5a0ff97442fe598f8cc0176037a7f664a4c1a83ff1f04eb2d7f3aa72aca78fd3ed12ecaee7d2755231985abc0a9dbd012006d404454a757a47 config-pine64-pinetab2.aarch64
"