core/linux-raspberrypi to 5.10.63-15

Fix build error on $CARCH check
This commit is contained in:
graysky 2021-10-02 06:12:55 -04:00
parent 521d9e3e6e
commit 43737f4aa2
2 changed files with 11 additions and 8 deletions

View file

@ -11,9 +11,9 @@ buildarch=28
pkgname=ffmpeg-shinobi
_pkgname=ffmpeg
pkgver=4.3.2
pkgrel=2
pkgdesc='FFmpeg from the 4.3 release branch for use with Shinobi'
arch=(x86_64 aarch64 armv6h armv7h)
pkgrel=3
pkgdesc='FFmpeg from the 4.3 release branch with hw accel decoding for use with Shinobi'
arch=(aarch64 armv6h armv7h)
url=https://ffmpeg.org/
license=(GPL3)
depends=(
@ -111,6 +111,7 @@ _tag=f719f869907764e6412a6af6e178c46e5f915d25
source=(
git+https://git.ffmpeg.org/ffmpeg.git#tag=${_tag}
vmaf-model-path.patch
try.patch
)
sha256sums=(
SKIP
@ -126,6 +127,7 @@ pkgver() {
prepare() {
cd ffmpeg
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && patch -Np1 -i ../try.patch
patch -Np1 -i "${srcdir}"/vmaf-model-path.patch
}
@ -181,8 +183,6 @@ build() {
--enable-version3
)
[[ $CARCH == "x86_64" ]] && _args+=(--enable-libaom --enable-libmfx --enable-librav1e --enable-libvmaf --enable-nvdec --enable-nvenc)
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && _args+=('--host-cflags="-fPIC"' --enable-librsvg)
[[ $CARCH == "armv6h" || $CARCH == 'arm' ]] && _args+=('--extra-libs="-latomic"' --enable-librsvg)

View file

@ -12,7 +12,7 @@ _srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="Raspberry Pi 1 and 2"
pkgver=5.10.63
pkgrel=14
pkgrel=15
pkgdesc='Linux'
url="http://www.kernel.org/"
arch=(armv6h armv7h)
@ -94,8 +94,11 @@ _package() {
install -m644 ../$_bconfig "${pkgdir}/boot/config.txt"
install -m644 ../cmdline.txt "${pkgdir}/boot"
[[ $CARCH == "armv6h" ]] && rm -f "${pkgdir}"/boot/bcm{2836,2837,2838,2709,2710,2711}*.dtb
[[ $CARCH == "armv7h" ]] && rm -f "${pkgdir}"/boot/bcm{2835,2838,2708,2711}*.dtb
if [[ $CARCH == "armv6h" ]]; then
rm -f "${pkgdir}"/boot/bcm{2836,2837,2838,2709,2710,2711}*.dtb
elif [[ $CARCH == "armv7h" ]]; then
rm -f "${pkgdir}"/boot/bcm{2835,2838,2708,2711}*.dtb
fi
}
_package-headers() {