blob: deae797e9e3725daee9d495320dda3471510a5cd (
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
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=raspberrypi
pkgver=0.20200728
_commitid=3e59217bd93b8024fb8fc1c6530b00cbae64bc73
pkgrel=1
pkgdesc="Raspberry Pi support tools"
url="https://github.com/raspberrypi/userland"
arch="armhf armv7 aarch64"
license="BSD"
depends=""
depends_dev="linux-headers raspberrypi-static raspberrypi-libs"
makedepends="cmake $depends_dev"
install=""
options="!fhs !check"
subpackages="$pkgname-dev $pkgname-static $pkgname-libs"
source="raspberrypi-$pkgver.tar.gz::https://github.com/raspberrypi/userland/archive/$_commitid.tar.gz
ld.so.conf
"
builddir="$srcdir"/userland-$_commitid
prepare() {
default_prepare
sed -i 's/ bash / sh /g' host_applications/linux/apps/raspicam/CMakeLists.txt
}
build() {
cd "$builddir"
case "$CARCH" in
arm*) local ARM64=off;;
aarch64) local ARM64=on;;
esac
cmake -DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE" \
-DARM64=$ARM64 \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_RPATH=/opt/vc/lib \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-as-needed" \
$_sourcedir
make
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
install -Dm644 "$srcdir"/ld.so.conf "$pkgdir"/etc/ld.so.conf.d/00-raspberry-pi.conf
# nuke the unwanted stuff
rm -rf "$pkgdir"/opt/vc/src
}
static() {
pkgdesc="Static files for $pkgname"
mkdir -p "$subpkgdir"/opt/vc/lib
mv "$pkgdir"/opt/vc/lib/*.a "$subpkgdir"/opt/vc/lib
}
libs() {
pkgdesc="Raspberry Pi support libraries"
mkdir -p "$subpkgdir"/opt/vc/lib
mv "$pkgdir"/opt/vc/lib/* "$subpkgdir"/opt/vc/lib
}
sha512sums="8fd6ed3baa7e8e4bdbf89e38da3d268be2661b621dffcf0c5189352c999369b461b0b29005f285876bf7d47fd6ac280048074f8ee65a2b5fd8b05a8735423984 raspberrypi-0.20200728.tar.gz
af4bec6613ac1fc23f8fee7cfb132c4ac32699bf0b1a9fc687843b5ead0c2c6fc6e2842df740d32c89dc69211a92588ef91b62b1b96748653ab34deb6be76cd7 ld.so.conf"
|