Commit f440be35 authored by Bart Ribbers's avatar Bart Ribbers Committed by Leo
Browse files

main/raspberrypi: upgrade to 0.20200813

parent f3c21600
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=raspberrypi
pkgver=0.20190416
_commitid=ff2bd4552145e8dc190276d8fbdbadc7e8e0da78
pkgrel=2
pkgver=0.20200813
pkgrel=0
_commit="f73fca015d421b763936667a0b58fe5024d59921"
pkgdesc="Raspberry Pi support tools"
url="https://github.com/raspberrypi/userland"
arch="armhf armv7 aarch64"
license="BSD-3-Clause"
depends=""
depends_dev="linux-headers raspberrypi-static raspberrypi-libs"
makedepends="cmake $depends_dev"
install=""
options="!fhs !check"
subpackages="$pkgname-dev $pkgname-static $pkgname-libs $pkgname-openrc"
source="raspberrypi-$pkgver.tar.gz::https://github.com/raspberrypi/userland/archive/$_commitid.tar.gz
"
builddir="$srcdir"/userland-$_commitid
subpackages="$pkgname-dev $pkgname-static $pkgname-libs"
source="raspberrypi-$_commit.tar.gz::https://github.com/raspberrypi/userland/archive/$_commit.tar.gz"
builddir="$srcdir/userland-$_commit"
prepare() {
default_prepare
......@@ -24,27 +20,24 @@ prepare() {
}
build() {
cd "$builddir"
case "$CARCH" in
arm*) local ARM64=off;;
aarch64) local ARM64=on;;
arm*) local _arm64=off;;
aarch64) local _arm64=on;;
esac
cmake -DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE" \
-DARM64=$ARM64 \
-DCMAKE_BUILD_TYPE=MinSizeRel \
cmake -B build \
-DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE" \
-DARM64=$_arm64 \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_RPATH=/opt/vc/lib \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-as-needed" \
$_sourcedir
make
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-as-needed"
cmake --build build
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
DESTDIR="$pkgdir" cmake --build build --target install
# nuke the unwanted stuff
rm -rf "$pkgdir"/opt/vc/src
mv "$pkgdir"/opt/vc/etc "$pkgdir"
}
static() {
......@@ -61,4 +54,4 @@ libs() {
mv "$pkgdir"/opt/vc/lib/* "$subpkgdir"/opt/vc/lib
}
sha512sums="dad48bd88d11a3f6807250275950235122bf5f35c47c5891f4e2c40964adbf69de6dbc014cea561540e516bed369257fc134a0114b9bdfa6e6a689a48bfd9f40 raspberrypi-0.20190416.tar.gz"
sha512sums="2b44a82945a1cad8a01938b866363001740274364d8818d0e83b701f1597de8e016b6f1254b0788685d411e832e7d5b053224b9d09d0126ad6db9abf2f768075 raspberrypi-f73fca015d421b763936667a0b58fe5024d59921.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment