blob: d0a30c6ce5f03cbb88484b367acfddaa94f5b76e (
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
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=raspberrypi
pkgver=0.20181212
_commitid=7cbfbd38d9824535164f93a1d32c81a33a00ca31
pkgrel=0
pkgdesc="Raspberry Pi support tools"
url="https://github.com/raspberrypi/userland"
arch="armhf armv7 aarch64"
license="BSD"
depends=""
depends_dev="linux-headers raspberrypi-libs"
makedepends="cmake $depends_dev"
install=""
options="!fhs !check"
subpackages="$pkgname-dev $pkgname-libs $pkgname-openrc"
source="raspberrypi-$pkgver.tar.gz::https://github.com/raspberrypi/userland/archive/$_commitid.tar.gz
"
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 \
$_sourcedir
make
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
# 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
}
sha512sums="37ebb121cbf4815bc367b9718e450145d48e78e095165e529dc4b30502c5d9370982134235a0dc90334a67b56e3326c1a933f2b11bef40e605f9aeaa85101618 raspberrypi-0.20181212.tar.gz"
|