diff options
author | Donald Carr | 2017-05-28 15:54:47 -0700 |
---|---|---|
committer | Donald Carr | 2017-05-28 15:54:47 -0700 |
commit | a0f795aa1a928612b5c1280f7c606aa13fe6199a (patch) | |
tree | 16594ca5797832c5d2979fdd587d632335047788 | |
parent | bc0b2c64dce1a4fdb7a0938d3c5043b920a903a4 (diff) | |
download | aur-a0f795aa1a928612b5c1280f7c606aa13fe6199a.tar.gz |
Sanitize overly convoluted PKGBUILD
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -43,13 +43,17 @@ if [[ -z ${startdir} ]]; then _building=false; fi +if [[ -f target-host ]]; then + _target_host=true + _minimal=false +fi + if [[ -f full-build ]]; then _minimal=false - _debug=false fi # Sanity check options -if $_building; then +if $_building && ! $_target_host; then if [[ -z $_piver ]] && [[ -n $LOCAL_PI_VER ]]; then _piver=$LOCAL_PI_VER; fi _sysroot=/mnt/pi${_piver} if [[ -z "${_piver}" ]]; then @@ -63,10 +67,6 @@ if $_building; then fi fi -if [[ $_piver = "" ]]; then - _target_host=true -fi - # vars _local_qt5_repo="/opt/dev/src/qtproject/qt5" _pkgvermajmin="5.9" @@ -118,16 +118,12 @@ fi if [[ -z "${_dev_suffix}" ]]; then _release_type="official_releases"; fi $_build_from_head && _patching=false && _shadow_build=true -$_skip_web_engine && _additional_configure_flags="$_additional_configure_flags -skip qtwebengine" +$_skip_web_engine && _additional_configure_flags="$_additional_configure_flags -skip qtwebengine -no-icu" $_skip_qt_script && _additional_configure_flags="$_additional_configure_flags -skip qtscript" $_skip_qt_widgets && _additional_configure_flags="$_additional_configure_flags -no-widgets" $_static_build && _additional_configure_flags="$_additional_configure_flags -static" $_float && _additional_configure_flags="$_additional_configure_flags -qreal float" -if $_skip_web_engine; then - _additional_configure_flags="$_additional_configure_flags -no-icu" -fi - # PKGBUILD vars install=qpi.install |