diff options
author | Karel Kočí <cynerd@email.cz> | 2020-01-30 00:57:09 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-01-30 00:57:09 +0100 |
commit | 76abfe79aac7d4d8f35a19cdc67c905670d13f67 (patch) | |
tree | b761ddf6df2c633944dfd01baa0475daf6e14324 /raspberrypi/APKBUILD | |
parent | 8dceffbc6c0c85ab9da170383706099e7c416e6d (diff) | |
download | alpine-personal-pkgs-76abfe79aac7d4d8f35a19cdc67c905670d13f67.tar.gz alpine-personal-pkgs-76abfe79aac7d4d8f35a19cdc67c905670d13f67.tar.bz2 alpine-personal-pkgs-76abfe79aac7d4d8f35a19cdc67c905670d13f67.zip |
raspberrypi: update to latest commit
Diffstat (limited to 'raspberrypi/APKBUILD')
-rw-r--r-- | raspberrypi/APKBUILD | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/raspberrypi/APKBUILD b/raspberrypi/APKBUILD new file mode 100644 index 0000000..e761874 --- /dev/null +++ b/raspberrypi/APKBUILD @@ -0,0 +1,64 @@ +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=raspberrypi +pkgver=0.20191218 +_commitid=06bc6daa02137ca72b7a2104afad81e82a44de17 +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-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 + +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" + + # nuke the unwanted stuff + rm -rf "$pkgdir"/opt/vc/src + mv "$pkgdir"/opt/vc/etc "$pkgdir" +} + +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="8a476b7d749457718e02efd488b175a45c2522e2fc0c9198a3085670af0ad29dfc2e04562c9e6944085af5589ba1943bcefb2c023c465d895a30c9090b8f7bd7 raspberrypi-0.20191218.tar.gz" |