diff options
author | Donald Carr | 2016-09-13 00:20:11 -0700 |
---|---|---|
committer | Donald Carr | 2016-09-13 00:23:46 -0700 |
commit | d642934b156c4714bd3bd0af958b5aa4f68edae3 (patch) | |
tree | 1f25fe17cf900020279cead969ab882ed0086838 | |
parent | ff00d18f1351f2249714d76ebf5fc12c5f479bcd (diff) | |
download | aur-d642934b156c4714bd3bd0af958b5aa4f68edae3.tar.gz |
Articulate all 3 toolchains
Change-Id: I2346564eecf9b3e70b572ed50054c2cce997385d
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 28 insertions, 7 deletions
@@ -1,16 +1,37 @@ # Maintainer: Donald Carr <sirspudd at gmail dot com> -_aarch64=false +#set -x + +if [[ -z $_piver ]] && [[ -n $LOCAL_PI_VER ]]; then + _piver=$LOCAL_PI_VER +fi + +if [[ -z $_piver ]]; then + echo "You have to specify a Raspberry Pi version before continuing" + exit 1 +fi + +if [[ -n "$_piver" ]]; then + _qmake="/opt/qt-sdk-raspberry-pi${_piver}/bin/qmake" +fi _pkgname=qpi -_toolchainname=armv7-rpi2-linux-gnueabihf -if $_aarch64; then - _pkgname="$_pkgname-aarch64" + +case $_piver in +1) + _toolchainname=armv6-rpi-linux-gnueabihf +;; +2) + _toolchainname=armv7-rpi2-linux-gnueabihf +;; +3) _toolchainname=aarch64-rpi3-linux-gnueabi -fi -pkgname=${_pkgname}-toolchain +;; +esac + +pkgname=qpi${_piver}-toolchain pkgver=6.1.0 -pkgrel=3 +pkgrel=4 pkgdesc="cross-tool-ng compiled GCC toolchain for the pi" arch=("x86_64") license=("GPL") |