mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 21:32:22 +01:00
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
|
pkgname=raspberrypi
|
|
pkgver=0.20161031
|
|
_commitid=100f8bb3e74e29d04fb99857183cc34aaa712e3f
|
|
pkgrel=0
|
|
pkgdesc="Raspberry Pi support tools"
|
|
url="https://github.com/raspberrypi/userland"
|
|
arch="armhf"
|
|
license="BSD"
|
|
depends=""
|
|
depends_dev="linux-headers raspberrypi-libs"
|
|
makedepends="cmake $depends_dev"
|
|
install=""
|
|
options="!fhs"
|
|
subpackages="$pkgname-dev $pkgname-libs"
|
|
source="raspberrypi-$pkgver.tar.gz::https://github.com/raspberrypi/userland/archive/$_commitid.tar.gz
|
|
"
|
|
|
|
builddir="$srcdir"/userland-$_commitid
|
|
|
|
build() {
|
|
mkdir -p "$builddir"
|
|
cd "$builddir"
|
|
# -Wno-error=array-bounds is workaround for gcc bug 59124
|
|
cmake -DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE -Wno-error=array-bounds" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_RPATH=/opt/vc/lib \
|
|
$_sourcedir || return 1
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make install DESTDIR="$pkgdir" || return 1
|
|
|
|
# nuke the unwanted stuff
|
|
rm -rf "$pkgdir"/opt/vc/src
|
|
rm -rf "$pkgdir"/opt/vc/lib/*.a
|
|
}
|
|
|
|
libs() {
|
|
pkgdesc="Raspberry Pi support libraries"
|
|
|
|
mkdir -p "$subpkgdir"/opt/vc/lib
|
|
mv "$pkgdir"/opt/vc/lib/* "$subpkgdir"/opt/vc/lib
|
|
}
|
|
|
|
md5sums="2d4bde8d34c03a094828051806252c5b raspberrypi-0.20161031.tar.gz"
|
|
sha256sums="31e69f82da9d590f78662ed8d21a71dd247c73f78c3befed74d450a54ef12c64 raspberrypi-0.20161031.tar.gz"
|
|
sha512sums="107747ff172348de4a24dcd66ccebb063065879fea7df54c67f3b71a7ecb03e9e5a45e833e6c8c62fb3489b7ab4c41c3c68160de72e42c4c4c2353f8aba75261 raspberrypi-0.20161031.tar.gz"
|