diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-11-21 09:00:50 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-11-21 09:01:41 +0000 |
commit | 57983465375010a151353c3513ed4650e92473cb (patch) | |
tree | 891835bb76f78911effc61fb14d0c1deef1197a2 /main/raspberrypi/APKBUILD | |
parent | 28a40b21cee915078d7cf8dcdfe6ff978c450212 (diff) | |
download | aports-57983465375010a151353c3513ed4650e92473cb.tar.bz2 aports-57983465375010a151353c3513ed4650e92473cb.tar.xz |
main/raspberrypi: move from testing, upgrade to latest snapshot
remove now unneeded patches. upstream supports musl.
Diffstat (limited to 'main/raspberrypi/APKBUILD')
-rw-r--r-- | main/raspberrypi/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/main/raspberrypi/APKBUILD b/main/raspberrypi/APKBUILD new file mode 100644 index 0000000000..77cb839ffc --- /dev/null +++ b/main/raspberrypi/APKBUILD @@ -0,0 +1,56 @@ +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=raspberrypi +pkgver=0.20141017 +_commitid=4333d6d023a1f0dcc763d0706a1fe6523f9b6005 +pkgrel=0 +pkgdesc="Raspberry Pi support tools" +url="https://github.com/raspberrypi/userland" +arch="armhf" +license="BSD" +depends="" +makedepends="cmake" +install="" +options="!fhs" +subpackages="$pkgname-dev $pkgname-libs" +source="raspberrypi-$pkgver.tar.gz::https://github.com/raspberrypi/userland/archive/$_commitid.tar.gz + " + +_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" + cmake -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="3cac9d31589cc7d41e8c03d02de76732 raspberrypi-0.20141017.tar.gz" +sha256sums="8fb517d84f58b8c9c4ec6c8829300066e5a1fae23525a705ea5165ed97a63426 raspberrypi-0.20141017.tar.gz" +sha512sums="249f8e44ea1048c0e339c3bb47d420845eb487809f2ba2f4896f19b1e955502856151d122a97ad4a82dcc0912e34be33d092447ec8c94bc7666fb5b19bc0fdb1 raspberrypi-0.20141017.tar.gz" |