alarm/raspberrypi-firmware to 20210427-1

Include man pages for all RPis not just aarch64
This commit is contained in:
graysky 2021-04-27 07:24:29 -04:00
parent 17e9da590e
commit 4056b3b5ee

View file

@ -5,7 +5,7 @@
buildarch=28
pkgname=raspberrypi-firmware
pkgver=20210426
pkgver=20210427
pkgrel=1
_commitfirmware=496e65477e06172ea20602e365d3790632c3cc06
_commituserland=45a0022ac64b4d0788def3c5230c972430f6fc23
@ -20,23 +20,30 @@ options=(!strip)
source=('00-raspberrypi-firmware.conf'
'10-raspberrypi-firmware.rules'
'raspberrypi-firmware.sh')
source_armv6h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz")
source_armv7h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz")
source_armv6h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz"
Add-man-pages-for-most-commands.patch::https://patch-diff.githubusercontent.com/raw/raspberrypi/firmware/pull/1572.patch)
source_armv7h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz"
Add-man-pages-for-most-commands.patch::https://patch-diff.githubusercontent.com/raw/raspberrypi/firmware/pull/1572.patch)
source_aarch64=("https://github.com/raspberrypi/userland/archive/$_commituserland.tar.gz"
"https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE")
md5sums=('72e0d5818fc513ece1b964f25f7e7882'
'2ad54baf398afe59ff5a70eb655f1b96'
'60919cb17f31b4698b6650bbb46f18ed')
md5sums_armv6h=('0aa6de64cab765e301662657b85e64c4')
md5sums_armv7h=('0aa6de64cab765e301662657b85e64c4')
md5sums_armv6h=('0aa6de64cab765e301662657b85e64c4'
'4377323248618b78e2adbbf50a48ebce')
md5sums_armv7h=('0aa6de64cab765e301662657b85e64c4'
'4377323248618b78e2adbbf50a48ebce')
md5sums_aarch64=('53e67a5a4e36049cc66e40dd8f93f533'
'86e53f5f5909ee66900418028de11780')
build() {
if [[ "${CARCH}" = 'aarch64' ]]; then
cd ${srcdir}/userland-${_commituserland}
cd "${srcdir}/userland-${_commituserland}"
cmake -DCMAKE_BUILD_TYPE=Release -DARM64=ON
make
else
cd "${srcdir}/firmware-${_commitfirmware}"
patch -Np1 -i ../Add-man-pages-for-most-commands.patch
fi
}
@ -46,7 +53,7 @@ package() {
# setup PATH to hit /opt/vc/bin/
install -Dt "$pkgdir/etc/profile.d" -m644 raspberrypi-firmware.sh
mkdir -p "${pkgdir}"/opt/vc
if [[ "${CARCH}" = 'aarch64' ]]; then
@ -61,17 +68,18 @@ package() {
# Create lib links
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
install -m644 ../00-raspberrypi-firmware.conf "${pkgdir}"/etc/ld.so.conf.d/00-raspberrypi-firmware.conf
# Install man pages to /usr/share/man/ not to /opt/vc/man/
mkdir -p "${pkgdir}"/usr/share/man/man{1,7}
mv "${pkgdir}"/opt/vc/man/man1/*.1 "${pkgdir}"/usr/share/man/man1
mv "${pkgdir}"/opt/vc/man/man7/*.7 "${pkgdir}"/usr/share/man/man7
rm -rf "${pkgdir}"/opt/vc/man
else
cp -R "${srcdir}"/firmware-${_commitfirmware}/hardfp/opt/vc/{bin,include,lib,LICENCE} "${pkgdir}"/opt/vc
cp -R "${srcdir}"/firmware-${_commitfirmware}/opt/vc/man "${pkgdir}"/opt/vc
# Create lib links
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
cp "${srcdir}/00-raspberrypi-firmware.conf" "${pkgdir}"/etc/ld.so.conf.d/
fi
# Install man pages to /usr/share/man/ not to /opt/vc/man/
mkdir -p "${pkgdir}"/usr/share/man/man{1,7}
mv "${pkgdir}"/opt/vc/man/man1/*.1 "${pkgdir}"/usr/share/man/man1
mv "${pkgdir}"/opt/vc/man/man7/*.7 "${pkgdir}"/usr/share/man/man7
rm -rf "${pkgdir}"/opt/vc/man
}