blob: 23f279fbe37de7b79b430c1def7176a9871fff86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=raspberrypi
pkgver=0.20150825
_commitid=fb11b39d97371c076eef7c85bbcab5733883a41e
pkgrel=1
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
fix-build.patch
fix-inlines.patch
"
_sourcedir="$srcdir"/userland-$_commitid
_builddir="$srcdir"/build
prepare() {
local i
cd "$_sourcedir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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="892449f3d18208da4ea2f871c21c8e35 raspberrypi-0.20150825.tar.gz
5e2f8c8f8d59541370b7df4918352443 fix-build.patch
87d5150f912486b7dadfee05d1f034cb fix-inlines.patch"
sha256sums="3521fa369732c7caa9a343c19a4b37d1b1056033965f0654a07547a936da87df raspberrypi-0.20150825.tar.gz
90610f473acb5267eff18baaaca39076401dd375156ce2bf2e220738fac0ee99 fix-build.patch
cae600ccfcbf3699e4e968352d5c483536bdab0a1b0700fc40b620bf3b6e50a6 fix-inlines.patch"
sha512sums="806c888e5a927204c817fc25a0bc91a1cedb0f2385ccb2c54de5c966e8dc59cf1277e51b3fd9bb005352995d9f725b9be6c357499121e634ec9332b35fee9fb0 raspberrypi-0.20150825.tar.gz
8697565069613dc824a516784553eb0ea5edcaa072dfc57fc38c32d0d7f6051273a2eedae840e8909fd046bf828eb4aaa50c2fff31c371c9ef23b7d4f33450aa fix-build.patch
1b54703bb63f995f7c9b80801975302d7e6df4f396e1213dff3004d399e60cde2714c46480555e935e793e168865e44964514a3d41dfd7a1fb74759f7ce65c7e fix-inlines.patch"
|