Last active
August 29, 2015 14:23
-
-
Save despairblue/21b7cde32497c7e151d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++ pkgver=1.7.4 | |
++ pkgrel=2 | |
++ pkgdesc='Share a single mouse and keyboard between multiple computers' | |
++ url=http://synergy-foss.org | |
++ arch=('i686' 'x86_64') | |
++ depends=('gcc-libs' 'libxtst' 'libxinerama' 'libxkbcommon-x11' 'avahi' 'curl') | |
++ makedepends=('libxt' 'cmake' 'qt5-base' 'unzip') | |
++ optdepends=('qt5-base: gui support' 'openssl: encryption support') | |
++ license=('GPL2') | |
++ source=("synergy-${pkgver}.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz" "synergys_at.socket" "synergys_at.service" fix-incompetence.patch) | |
++ sha1sums=('SKIP' '7ec33221725fc496b807e0f435c5e87b590beb5d' '65ab58cc3546d6374a05a6a260f15045632e43ce' '10a899901ef62828280f21979625495f4da159f5') | |
+ shopt -s extglob | |
+ (( !SOURCEONLY )) | |
+ merge_arch_attrs | |
+ supported_attrs=(provides conflicts depends replaces optdepends makedepends checkdepends) | |
+ local attr supported_attrs | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'provides+=("${provides_x86_64[@]}")' | |
++ provides+=("${provides_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'conflicts+=("${conflicts_x86_64[@]}")' | |
++ conflicts+=("${conflicts_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'depends+=("${depends_x86_64[@]}")' | |
++ depends+=("${depends_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'replaces+=("${replaces_x86_64[@]}")' | |
++ replaces+=("${replaces_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'optdepends+=("${optdepends_x86_64[@]}")' | |
++ optdepends+=("${optdepends_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'makedepends+=("${makedepends_x86_64[@]}")' | |
++ makedepends+=("${makedepends_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'checkdepends+=("${checkdepends_x86_64[@]}")' | |
++ checkdepends+=("${checkdepends_x86_64[@]}") | |
+ unset -v provides_x86_64 conflicts_x86_64 depends_x86_64 replaces_x86_64 optdepends_x86_64 makedepends_x86_64 checkdepends_x86_64 | |
+ pkgbase= | |
++ get_full_version | |
++ (( epoch > 0 )) | |
++ printf '%s\n' 1.7.4-2 | |
+ basever=1.7.4-2 | |
+ [[ /home/despairblue/git/synergy = \/\h\o\m\e\/\d\e\s\p\a\i\r\b\l\u\e\/\g\i\t\/\s\y\n\e\r\g\y ]] | |
+ srcdir=/home/despairblue/git/synergy/src | |
+ pkgdirbase=/home/despairblue/git/synergy/pkg | |
+ pkgdir=/home/despairblue/git/synergy/pkg/ | |
+ (( GENINTEG )) | |
+ have_function pkgver | |
+ declare -f pkgver | |
+ check_sanity | |
+ local ret=0 | |
+ local lintfn lint_functions | |
+ lint_functions=(lint_pkgbase lint_pkgname lint_pkgver lint_pkgrel lint_epoch lint_arch lint_provides lint_backup lint_optdepends lint_changelog lint_install lint_options lint_packagefn lint_pkglist lint_source) | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgbase | |
+ [[ '' = \- ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgname | |
+ local ret=0 i | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgver | |
+ (( PKGVERFUNC )) | |
+ check_pkgver | |
+ [[ -z 1.7.4 ]] | |
+ validate_pkgver 1.7.4 | |
+ [[ 1.7.4 = *[[:space:]:-]* ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgrel | |
+ [[ -z 2 ]] | |
+ [[ 2 != +([0-9])?(.+([0-9])) ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_epoch | |
+ [[ '' != *([[:digit:]]) ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_arch | |
+ local a name list | |
+ [[ i686 == \a\n\y ]] | |
+ for a in '"${arch[@]}"' | |
+ [[ i686 = *[![:alnum:]_]* ]] | |
+ for a in '"${arch[@]}"' | |
+ [[ x86_64 = *[![:alnum:]_]* ]] | |
+ (( ! IGNOREARCH )) | |
+ in_array x86_64 i686 x86_64 | |
+ local needle=x86_64 | |
+ shift | |
+ local item | |
+ for item in '"$@"' | |
+ [[ i686 = \x\8\6\_\6\4 ]] | |
+ for item in '"$@"' | |
+ [[ x86_64 = \x\8\6\_\6\4 ]] | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_provides | |
+ local a list name provides_list ret=0 | |
+ provides_list=("${provides[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list provides_i686 | |
+ local dest=list src=provides_i686 i keys values | |
+ declare -p provides_i686 | |
+ return 1 | |
+ provides_list+=("${list[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list provides_x86_64 | |
+ local dest=list src=provides_x86_64 i keys values | |
+ declare -p provides_x86_64 | |
+ return 1 | |
+ provides_list+=("${list[@]}") | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_backup | |
+ local list name backup_list ret=0 | |
+ backup_list=("${backup[@]}") | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_optdepends | |
+ local a list name optdepends_list ret=0 | |
+ optdepends_list=("${optdepends[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list optdepends_i686 | |
+ local dest=list src=optdepends_i686 i keys values | |
+ declare -p optdepends_i686 | |
+ return 1 | |
+ optdepends_list+=("${list[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list optdepends_x86_64 | |
+ local dest=list src=optdepends_x86_64 i keys values | |
+ declare -p optdepends_x86_64 | |
+ return 1 | |
+ optdepends_list+=("${list[@]}") | |
+ for name in '"${optdepends_list[@]}"' | |
+ local pkg=qt5-base | |
+ [[ qt5-base != +([-[:alnum:]><=.+_:]) ]] | |
+ for name in '"${optdepends_list[@]}"' | |
+ local pkg=openssl | |
+ [[ openssl != +([-[:alnum:]><=.+_:]) ]] | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_changelog | |
+ local list name file changelog_list ret=0 | |
+ changelog_list=("${changelog[@]}") | |
+ check_files_exist changelog | |
+ files=("${@:2}") | |
+ local kind=changelog files file ret | |
+ return | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_install | |
+ local list file name install_list ret=0 | |
+ install_list=("${install[@]}") | |
+ check_files_exist install | |
+ files=("${@:2}") | |
+ local kind=install files file ret | |
+ return | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_options | |
+ local ret=0 list name kopt options_list | |
+ options_list=("${options[@]}") | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_packagefn | |
+ local i ret=0 | |
+ (( 0 == 1 )) | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkglist | |
+ local i ret=0 | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_source | |
+ idx=("${!source[@]}") | |
+ local idx | |
+ (( 4 > 0 && (idx[-1] + 1) != 4 )) | |
+ return 0 | |
+ check_software | |
+ local ret=0 | |
+ (( ! NODEPS || DEP_BIN || RMDEPS || INSTALL )) | |
+ [[ -z /usr/bin/pacman ]] | |
+ (( DEP_BIN || RMDEPS || INSTALL )) | |
+ type -p sudo | |
+ check_buildenv fakeroot y | |
+ in_opt_array fakeroot fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=fakeroot | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \f\a\k\e\r\o\o\t ]] | |
+ [[ !sign = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \f\a\k\e\r\o\o\t ]] | |
+ [[ check = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \f\a\k\e\r\o\o\t ]] | |
+ [[ !ccache = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=color | |
+ [[ color = \f\a\k\e\r\o\o\t ]] | |
+ [[ color = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!distcc' | |
+ [[ !distcc = \f\a\k\e\r\o\o\t ]] | |
+ [[ !distcc = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=fakeroot | |
+ [[ fakeroot = \f\a\k\e\r\o\o\t ]] | |
+ return 0 | |
+ case $? in | |
+ [[ y = \y ]] | |
+ return | |
+ (( EUID > 0 )) | |
+ type -p fakeroot | |
+ [[ '' == \y ]] | |
+ [[ -z '' ]] | |
+ check_buildenv sign y | |
+ in_opt_array sign fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=sign | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \s\i\g\n ]] | |
+ [[ !sign = \!\s\i\g\n ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ (( ! SKIPPGPCHECK )) | |
+ source_has_signatures | |
+ local file all_sources | |
+ get_all_sources_for_arch all_sources | |
+ local aggregate l | |
+ array_build l source | |
+ local dest=l src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'l=()' | |
++ l=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''l[0]'\'' %s "${source[0]}"; printf -v '\''l[1]'\'' %s "${source[1]}"; printf -v '\''l[2]'\'' %s "${source[2]}"; printf -v '\''l[3]'\'' %s "${source[3]}";' | |
++ printf -v 'l[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'l[1]' %s synergys_at.socket | |
++ printf -v 'l[2]' %s synergys_at.service | |
++ printf -v 'l[3]' %s fix-incompetence.patch | |
+ aggregate+=("${l[@]}") | |
+ array_build l source_x86_64 | |
+ local dest=l src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ array_build all_sources aggregate | |
+ local dest=all_sources src=aggregate i keys values | |
+ declare -p aggregate | |
+ eval 'keys=("${!aggregate[@]}")' | |
++ keys=("${!aggregate[@]}") | |
+ eval 'all_sources=()' | |
++ all_sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''all_sources[0]'\'' %s "${aggregate[0]}"; printf -v '\''all_sources[1]'\'' %s "${aggregate[1]}"; printf -v '\''all_sources[2]'\'' %s "${aggregate[2]}"; printf -v '\''all_sources[3]'\'' %s "${aggregate[3]}";' | |
++ printf -v 'all_sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'all_sources[1]' %s synergys_at.socket | |
++ printf -v 'all_sources[2]' %s synergys_at.service | |
++ printf -v 'all_sources[3]' %s fix-incompetence.patch | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergy-1.7.4.tar.gz = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergys_at.socket = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergys_at.service = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ fix-incompetence.patch = *.@(sig?(n)|asc) ]] | |
+ return 1 | |
+ (( ! SKIPCHECKSUMS )) | |
+ type -p openssl | |
+ check_option upx y | |
+ in_opt_array upx | |
+ local needle=upx | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array upx strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=upx | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \u\p\x ]] | |
+ [[ !debug = \!\u\p\x ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \u\p\x ]] | |
+ [[ !upx = \!\u\p\x ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = n ]] | |
+ return | |
+ check_buildenv distcc y | |
+ in_opt_array distcc fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=distcc | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \d\i\s\t\c\c ]] | |
+ [[ !sign = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \d\i\s\t\c\c ]] | |
+ [[ check = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \d\i\s\t\c\c ]] | |
+ [[ !ccache = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=color | |
+ [[ color = \d\i\s\t\c\c ]] | |
+ [[ color = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!distcc' | |
+ [[ !distcc = \d\i\s\t\c\c ]] | |
+ [[ !distcc = \!\d\i\s\t\c\c ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ check_buildenv ccache y | |
+ in_opt_array ccache fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=ccache | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \c\c\a\c\h\e ]] | |
+ [[ !sign = \!\c\c\a\c\h\e ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \c\c\a\c\h\e ]] | |
+ [[ check = \!\c\c\a\c\h\e ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \c\c\a\c\h\e ]] | |
+ [[ !ccache = \!\c\c\a\c\h\e ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ check_option strip y | |
+ in_opt_array strip | |
+ local needle=strip | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array strip strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=strip | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \s\t\r\i\p ]] | |
+ [[ !debug = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \s\t\r\i\p ]] | |
+ [[ !upx = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \s\t\r\i\p ]] | |
+ [[ purge = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \s\t\r\i\p ]] | |
+ [[ zipman = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=emptydirs | |
+ [[ emptydirs = \s\t\r\i\p ]] | |
+ [[ emptydirs = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!staticlibs' | |
+ [[ !staticlibs = \s\t\r\i\p ]] | |
+ [[ !staticlibs = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!libtool' | |
+ [[ !libtool = \s\t\r\i\p ]] | |
+ [[ !libtool = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=docs | |
+ [[ docs = \s\t\r\i\p ]] | |
+ [[ docs = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=strip | |
+ [[ strip = \s\t\r\i\p ]] | |
+ return 0 | |
+ case $? in | |
+ [[ y = y ]] | |
+ return | |
+ type -p strip | |
+ check_option zipman y | |
+ in_opt_array zipman | |
+ local needle=zipman | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array zipman strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=zipman | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \z\i\p\m\a\n ]] | |
+ [[ !debug = \!\z\i\p\m\a\n ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \z\i\p\m\a\n ]] | |
+ [[ !upx = \!\z\i\p\m\a\n ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \z\i\p\m\a\n ]] | |
+ [[ purge = \!\z\i\p\m\a\n ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \z\i\p\m\a\n ]] | |
+ return 0 | |
+ case $? in | |
+ [[ y = y ]] | |
+ return | |
+ type -p gzip | |
+ check_vcs_software | |
+ local all_sources all_deps deps ret=0 | |
+ (( SOURCEONLY == 1 )) | |
+ [[ -z /usr/bin/pacman ]] | |
+ for attr in depends makedepends | |
+ pkgbuild_get_attribute '' depends 1 deps | |
+ local pkgname= attrname=depends isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var depends 1 deps | |
+ local attr=depends isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref depends | |
+ local dest=ref src=depends i keys values | |
+ declare -p depends | |
+ eval 'keys=("${!depends[@]}")' | |
++ keys=("${!depends[@]}") | |
+ eval 'ref=()' | |
++ ref=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''ref[0]'\'' %s "${depends[0]}"; printf -v '\''ref[1]'\'' %s "${depends[1]}"; printf -v '\''ref[2]'\'' %s "${depends[2]}"; printf -v '\''ref[3]'\'' %s "${depends[3]}"; printf -v '\''ref[4]'\'' %s "${depends[4]}"; printf -v '\''ref[5]'\'' %s "${depends[5]}";' | |
++ printf -v 'ref[0]' %s gcc-libs | |
++ printf -v 'ref[1]' %s libxtst | |
++ printf -v 'ref[2]' %s libxinerama | |
++ printf -v 'ref[3]' %s libxkbcommon-x11 | |
++ printf -v 'ref[4]' %s avahi | |
++ printf -v 'ref[5]' %s curl | |
+ [[ -n gcc-libs libxtst libxinerama libxkbcommon-x11 avahi curl ]] | |
+ array_build deps depends | |
+ local dest=deps src=depends i keys values | |
+ declare -p depends | |
+ eval 'keys=("${!depends[@]}")' | |
++ keys=("${!depends[@]}") | |
+ eval 'deps=()' | |
++ deps=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''deps[0]'\'' %s "${depends[0]}"; printf -v '\''deps[1]'\'' %s "${depends[1]}"; printf -v '\''deps[2]'\'' %s "${depends[2]}"; printf -v '\''deps[3]'\'' %s "${depends[3]}"; printf -v '\''deps[4]'\'' %s "${depends[4]}"; printf -v '\''deps[5]'\'' %s "${depends[5]}";' | |
++ printf -v 'deps[0]' %s gcc-libs | |
++ printf -v 'deps[1]' %s libxtst | |
++ printf -v 'deps[2]' %s libxinerama | |
++ printf -v 'deps[3]' %s libxkbcommon-x11 | |
++ printf -v 'deps[4]' %s avahi | |
++ printf -v 'deps[5]' %s curl | |
+ all_deps+=("${deps[@]}") | |
+ pkgbuild_get_attribute '' depends_x86_64 1 deps | |
+ local pkgname= attrname=depends_x86_64 isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var depends_x86_64 1 deps | |
+ local attr=depends_x86_64 isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref depends_x86_64 | |
+ local dest=ref src=depends_x86_64 i keys values | |
+ declare -p depends_x86_64 | |
+ return 1 | |
+ [[ -n '' ]] | |
+ all_deps+=("${deps[@]}") | |
+ for attr in depends makedepends | |
+ pkgbuild_get_attribute '' makedepends 1 deps | |
+ local pkgname= attrname=makedepends isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var makedepends 1 deps | |
+ local attr=makedepends isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref makedepends | |
+ local dest=ref src=makedepends i keys values | |
+ declare -p makedepends | |
+ eval 'keys=("${!makedepends[@]}")' | |
++ keys=("${!makedepends[@]}") | |
+ eval 'ref=()' | |
++ ref=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''ref[0]'\'' %s "${makedepends[0]}"; printf -v '\''ref[1]'\'' %s "${makedepends[1]}"; printf -v '\''ref[2]'\'' %s "${makedepends[2]}"; printf -v '\''ref[3]'\'' %s "${makedepends[3]}";' | |
++ printf -v 'ref[0]' %s libxt | |
++ printf -v 'ref[1]' %s cmake | |
++ printf -v 'ref[2]' %s qt5-base | |
++ printf -v 'ref[3]' %s unzip | |
+ [[ -n libxt cmake qt5-base unzip ]] | |
+ array_build deps makedepends | |
+ local dest=deps src=makedepends i keys values | |
+ declare -p makedepends | |
+ eval 'keys=("${!makedepends[@]}")' | |
++ keys=("${!makedepends[@]}") | |
+ eval 'deps=()' | |
++ deps=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''deps[0]'\'' %s "${makedepends[0]}"; printf -v '\''deps[1]'\'' %s "${makedepends[1]}"; printf -v '\''deps[2]'\'' %s "${makedepends[2]}"; printf -v '\''deps[3]'\'' %s "${makedepends[3]}";' | |
++ printf -v 'deps[0]' %s libxt | |
++ printf -v 'deps[1]' %s cmake | |
++ printf -v 'deps[2]' %s qt5-base | |
++ printf -v 'deps[3]' %s unzip | |
+ all_deps+=("${deps[@]}") | |
+ pkgbuild_get_attribute '' makedepends_x86_64 1 deps | |
+ local pkgname= attrname=makedepends_x86_64 isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var makedepends_x86_64 1 deps | |
+ local attr=makedepends_x86_64 isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref makedepends_x86_64 | |
+ local dest=ref src=makedepends_x86_64 i keys values | |
+ declare -p makedepends_x86_64 | |
+ return 1 | |
+ [[ -n '' ]] | |
+ all_deps+=("${deps[@]}") | |
+ get_all_sources_for_arch all_sources | |
+ local aggregate l | |
+ array_build l source | |
+ local dest=l src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'l=()' | |
++ l=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''l[0]'\'' %s "${source[0]}"; printf -v '\''l[1]'\'' %s "${source[1]}"; printf -v '\''l[2]'\'' %s "${source[2]}"; printf -v '\''l[3]'\'' %s "${source[3]}";' | |
++ printf -v 'l[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'l[1]' %s synergys_at.socket | |
++ printf -v 'l[2]' %s synergys_at.service | |
++ printf -v 'l[3]' %s fix-incompetence.patch | |
+ aggregate+=("${l[@]}") | |
+ array_build l source_x86_64 | |
+ local dest=l src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ array_build all_sources aggregate | |
+ local dest=all_sources src=aggregate i keys values | |
+ declare -p aggregate | |
+ eval 'keys=("${!aggregate[@]}")' | |
++ keys=("${!aggregate[@]}") | |
+ eval 'all_sources=()' | |
++ all_sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''all_sources[0]'\'' %s "${aggregate[0]}"; printf -v '\''all_sources[1]'\'' %s "${aggregate[1]}"; printf -v '\''all_sources[2]'\'' %s "${aggregate[2]}"; printf -v '\''all_sources[3]'\'' %s "${aggregate[3]}";' | |
++ printf -v 'all_sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'all_sources[1]' %s synergys_at.socket | |
++ printf -v 'all_sources[2]' %s synergys_at.service | |
++ printf -v 'all_sources[3]' %s fix-incompetence.patch | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *://* ]] | |
++ local proto=http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf '%s\n' http | |
+ local proto=http | |
+ case $proto in | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol synergys_at.socket | |
++ [[ synergys_at.socket = *://* ]] | |
++ [[ synergys_at.socket = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case $proto in | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol synergys_at.service | |
++ [[ synergys_at.service = *://* ]] | |
++ [[ synergys_at.service = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case $proto in | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol fix-incompetence.patch | |
++ [[ fix-incompetence.patch = *://* ]] | |
++ [[ fix-incompetence.patch = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case $proto in | |
+ return 0 | |
+ return 0 | |
+ (( 0 > 1 )) | |
+ have_function prepare | |
+ declare -f prepare | |
+ [[ '' != \n ]] | |
+ PREPAREFUNC=1 | |
+ have_function build | |
+ declare -f build | |
+ BUILDFUNC=1 | |
+ have_function check | |
+ declare -f check | |
+ have_function package | |
+ declare -f package | |
+ PKGFUNC=1 | |
+ [[ -n '' ]] | |
+ [[ -z '' ]] | |
+ check_buildenv sign y | |
+ in_opt_array sign fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=sign | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \s\i\g\n ]] | |
+ [[ !sign = \!\s\i\g\n ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ [[ '' == \y ]] | |
+ (( ! PKGVERFUNC )) | |
+ check_build_status | |
+ (( ! SPLITPKG )) | |
++ get_full_version | |
++ (( epoch > 0 )) | |
++ printf '%s\n' 1.7.4-2 | |
+ fullver=1.7.4-2 | |
++ get_pkg_arch | |
++ [[ -z '' ]] | |
++ [[ i686 = \a\n\y ]] | |
++ printf '%s\n' x86_64 | |
+ pkgarch=x86_64 | |
+ [[ -f /home/despairblue/git/synergy/-1.7.4-2-x86_64.pkg.tar ]] | |
+ (( INFAKEROOT )) | |
++ gettext 'Making package: %s' | |
++ date | |
+ msg 'Making package: %s' ' 1.7.4-2 (Tue Jun 23 21:05:05 CEST 2015)' | |
+ local 'mesg=Making package: %s' | |
+ shift | |
+ printf '==> Making package: %s\n' ' 1.7.4-2 (Tue Jun 23 21:05:05 CEST 2015)' | |
==> Making package: 1.7.4-2 (Tue Jun 23 21:05:05 CEST 2015) | |
+ (( SOURCEONLY )) | |
+ (( NODEPS || ( VERIFYSOURCE && !DEP_BIN ) )) | |
+ (( RMDEPS && ! INSTALL )) | |
+ deperr=0 | |
++ gettext 'Checking runtime dependencies...' | |
+ msg 'Checking runtime dependencies...' | |
+ local 'mesg=Checking runtime dependencies...' | |
+ shift | |
+ printf '==> Checking runtime dependencies...\n' | |
==> Checking runtime dependencies... | |
+ resolve_deps gcc-libs libxtst libxinerama libxkbcommon-x11 avahi curl | |
+ local R_DEPS_SATISFIED=0 | |
+ local R_DEPS_MISSING=1 | |
+ local deplist | |
++ set +E | |
++ check_deps gcc-libs libxtst libxinerama libxkbcommon-x11 avahi curl | |
++ (( 6 > 0 )) | |
++ local ret=0 | |
++ local pmout | |
+++ run_pacman -T gcc-libs libxtst libxinerama libxkbcommon-x11 avahi curl | |
+++ local cmd | |
+++ [[ -T != -@(T|Qq) ]] | |
+++ cmd=("$PACMAN_PATH" "$@") | |
+++ [[ -T != -@(T|Qq) ]] | |
+++ /usr/bin/pacman -T gcc-libs libxtst libxinerama libxkbcommon-x11 avahi curl | |
++ pmout= | |
++ ret=0 | |
++ (( ret == 127 )) | |
++ (( ret )) | |
+ deplist= | |
+ [[ -z '' ]] | |
+ return 0 | |
+ (( RMDEPS && INSTALL )) | |
++ gettext 'Checking buildtime dependencies...' | |
+ msg 'Checking buildtime dependencies...' | |
+ local 'mesg=Checking buildtime dependencies...' | |
+ shift | |
+ printf '==> Checking buildtime dependencies...\n' | |
==> Checking buildtime dependencies... | |
+ (( CHECKFUNC )) | |
+ resolve_deps libxt cmake qt5-base unzip | |
+ local R_DEPS_SATISFIED=0 | |
+ local R_DEPS_MISSING=1 | |
+ local deplist | |
++ set +E | |
++ check_deps libxt cmake qt5-base unzip | |
++ (( 4 > 0 )) | |
++ local ret=0 | |
++ local pmout | |
+++ run_pacman -T libxt cmake qt5-base unzip | |
+++ local cmd | |
+++ [[ -T != -@(T|Qq) ]] | |
+++ cmd=("$PACMAN_PATH" "$@") | |
+++ [[ -T != -@(T|Qq) ]] | |
+++ /usr/bin/pacman -T libxt cmake qt5-base unzip | |
++ pmout= | |
++ ret=0 | |
++ (( ret == 127 )) | |
++ (( ret )) | |
+ deplist= | |
+ [[ -z '' ]] | |
+ return 0 | |
+ (( RMDEPS )) | |
+ (( deperr )) | |
+ mkdir -p /home/despairblue/git/synergy/src | |
+ chmod a-s /home/despairblue/git/synergy/src | |
+ cd_safe /home/despairblue/git/synergy/src | |
+ cd /home/despairblue/git/synergy/src | |
+ (( NOEXTRACT && ! VERIFYSOURCE )) | |
+ (( !REPKG )) | |
+ download_sources | |
+ local netfile all_sources | |
+ local get_source_fn=get_all_sources_for_arch get_vcs=1 | |
++ gettext 'Retrieving sources...' | |
+ msg 'Retrieving sources...' | |
+ local 'mesg=Retrieving sources...' | |
+ shift | |
+ printf '==> Retrieving sources...\n' | |
==> Retrieving sources... | |
+ true | |
+ case $1 in | |
+ break 2 | |
+ get_all_sources_for_arch all_sources | |
+ local aggregate l | |
+ array_build l source | |
+ local dest=l src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'l=()' | |
++ l=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''l[0]'\'' %s "${source[0]}"; printf -v '\''l[1]'\'' %s "${source[1]}"; printf -v '\''l[2]'\'' %s "${source[2]}"; printf -v '\''l[3]'\'' %s "${source[3]}";' | |
++ printf -v 'l[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'l[1]' %s synergys_at.socket | |
++ printf -v 'l[2]' %s synergys_at.service | |
++ printf -v 'l[3]' %s fix-incompetence.patch | |
+ aggregate+=("${l[@]}") | |
+ array_build l source_x86_64 | |
+ local dest=l src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ array_build all_sources aggregate | |
+ local dest=all_sources src=aggregate i keys values | |
+ declare -p aggregate | |
+ eval 'keys=("${!aggregate[@]}")' | |
++ keys=("${!aggregate[@]}") | |
+ eval 'all_sources=()' | |
++ all_sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''all_sources[0]'\'' %s "${aggregate[0]}"; printf -v '\''all_sources[1]'\'' %s "${aggregate[1]}"; printf -v '\''all_sources[2]'\'' %s "${aggregate[2]}"; printf -v '\''all_sources[3]'\'' %s "${aggregate[3]}";' | |
++ printf -v 'all_sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'all_sources[1]' %s synergys_at.socket | |
++ printf -v 'all_sources[2]' %s synergys_at.service | |
++ printf -v 'all_sources[3]' %s fix-incompetence.patch | |
+ for netfile in '"${all_sources[@]}"' | |
+ pushd /home/despairblue/git/synergy | |
++ get_protocol synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *://* ]] | |
++ local proto=http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf '%s\n' http | |
+ local proto=http | |
+ case "$proto" in | |
+ download_file synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
+ local netfile=synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ get_filepath synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
+++ get_filename synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
+++ local netfile=synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
+++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *::* ]] | |
+++ printf '%s\n' synergy-1.7.4.tar.gz | |
+++ return | |
++ local file=synergy-1.7.4.tar.gz | |
+++ get_protocol synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
+++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *://* ]] | |
+++ local proto=http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
+++ printf '%s\n' http | |
++ local proto=http | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergy-1.7.4.tar.gz ]] | |
++ file=/home/despairblue/git/synergy/synergy-1.7.4.tar.gz | |
++ printf '%s\n' /home/despairblue/git/synergy/synergy-1.7.4.tar.gz | |
+ local filepath=/home/despairblue/git/synergy/synergy-1.7.4.tar.gz | |
+ [[ -n /home/despairblue/git/synergy/synergy-1.7.4.tar.gz ]] | |
++ gettext 'Found %s' | |
+ msg2 'Found %s' synergy-1.7.4.tar.gz | |
+ local 'mesg=Found %s' | |
+ shift | |
+ printf ' -> Found %s\n' synergy-1.7.4.tar.gz | |
-> Found synergy-1.7.4.tar.gz | |
+ return | |
+ popd | |
+ for netfile in '"${all_sources[@]}"' | |
+ pushd /home/despairblue/git/synergy | |
++ get_protocol synergys_at.socket | |
++ [[ synergys_at.socket = *://* ]] | |
++ [[ synergys_at.socket = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case "$proto" in | |
+ download_local synergys_at.socket | |
+ local netfile=synergys_at.socket | |
++ get_filepath synergys_at.socket | |
+++ get_filename synergys_at.socket | |
+++ local netfile=synergys_at.socket | |
+++ [[ synergys_at.socket = *::* ]] | |
++++ get_protocol synergys_at.socket | |
++++ [[ synergys_at.socket = *://* ]] | |
++++ [[ synergys_at.socket = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=synergys_at.socket | |
+++ printf '%s\n' synergys_at.socket | |
++ local file=synergys_at.socket | |
+++ get_protocol synergys_at.socket | |
+++ [[ synergys_at.socket = *://* ]] | |
+++ [[ synergys_at.socket = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergys_at.socket ]] | |
++ file=/home/despairblue/git/synergy/synergys_at.socket | |
++ printf '%s\n' /home/despairblue/git/synergy/synergys_at.socket | |
+ local filepath=/home/despairblue/git/synergy/synergys_at.socket | |
+ [[ -n /home/despairblue/git/synergy/synergys_at.socket ]] | |
++ gettext 'Found %s' | |
+ msg2 'Found %s' synergys_at.socket | |
+ local 'mesg=Found %s' | |
+ shift | |
+ printf ' -> Found %s\n' synergys_at.socket | |
-> Found synergys_at.socket | |
+ popd | |
+ for netfile in '"${all_sources[@]}"' | |
+ pushd /home/despairblue/git/synergy | |
++ get_protocol synergys_at.service | |
++ [[ synergys_at.service = *://* ]] | |
++ [[ synergys_at.service = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case "$proto" in | |
+ download_local synergys_at.service | |
+ local netfile=synergys_at.service | |
++ get_filepath synergys_at.service | |
+++ get_filename synergys_at.service | |
+++ local netfile=synergys_at.service | |
+++ [[ synergys_at.service = *::* ]] | |
++++ get_protocol synergys_at.service | |
++++ [[ synergys_at.service = *://* ]] | |
++++ [[ synergys_at.service = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=synergys_at.service | |
+++ printf '%s\n' synergys_at.service | |
++ local file=synergys_at.service | |
+++ get_protocol synergys_at.service | |
+++ [[ synergys_at.service = *://* ]] | |
+++ [[ synergys_at.service = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergys_at.service ]] | |
++ file=/home/despairblue/git/synergy/synergys_at.service | |
++ printf '%s\n' /home/despairblue/git/synergy/synergys_at.service | |
+ local filepath=/home/despairblue/git/synergy/synergys_at.service | |
+ [[ -n /home/despairblue/git/synergy/synergys_at.service ]] | |
++ gettext 'Found %s' | |
+ msg2 'Found %s' synergys_at.service | |
+ local 'mesg=Found %s' | |
+ shift | |
+ printf ' -> Found %s\n' synergys_at.service | |
-> Found synergys_at.service | |
+ popd | |
+ for netfile in '"${all_sources[@]}"' | |
+ pushd /home/despairblue/git/synergy | |
++ get_protocol fix-incompetence.patch | |
++ [[ fix-incompetence.patch = *://* ]] | |
++ [[ fix-incompetence.patch = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case "$proto" in | |
+ download_local fix-incompetence.patch | |
+ local netfile=fix-incompetence.patch | |
++ get_filepath fix-incompetence.patch | |
+++ get_filename fix-incompetence.patch | |
+++ local netfile=fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *::* ]] | |
++++ get_protocol fix-incompetence.patch | |
++++ [[ fix-incompetence.patch = *://* ]] | |
++++ [[ fix-incompetence.patch = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=fix-incompetence.patch | |
+++ printf '%s\n' fix-incompetence.patch | |
++ local file=fix-incompetence.patch | |
+++ get_protocol fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *://* ]] | |
+++ [[ fix-incompetence.patch = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/fix-incompetence.patch ]] | |
++ file=/home/despairblue/git/synergy/fix-incompetence.patch | |
++ printf '%s\n' /home/despairblue/git/synergy/fix-incompetence.patch | |
+ local filepath=/home/despairblue/git/synergy/fix-incompetence.patch | |
+ [[ -n /home/despairblue/git/synergy/fix-incompetence.patch ]] | |
++ gettext 'Found %s' | |
+ msg2 'Found %s' fix-incompetence.patch | |
+ local 'mesg=Found %s' | |
+ shift | |
+ printf ' -> Found %s\n' fix-incompetence.patch | |
-> Found fix-incompetence.patch | |
+ popd | |
+ check_source_integrity | |
+ (( SKIPCHECKSUMS && SKIPPGPCHECK )) | |
+ (( SKIPCHECKSUMS )) | |
+ (( SKIPPGPCHECK )) | |
+ check_checksums | |
+ local integ a | |
+ declare -A correlation | |
+ (( SKIPCHECKSUMS )) | |
+ (( 4 )) | |
+ correlation['source']=1 | |
+ case $1 in | |
+ array_build _ source_x86_64 | |
+ local dest=_ src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ for integ in '"${known_hash_algos[@]}"' | |
+ verify_integrity_sums md5 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=md5 arch= integrity_sums sources | |
+ [[ -n '' ]] | |
+ array_build integrity_sums md5sums | |
+ local dest=integrity_sums src=md5sums i keys values | |
+ declare -p md5sums | |
+ return 1 | |
+ array_build sources source | |
+ local dest=sources src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'sources=()' | |
++ sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''sources[0]'\'' %s "${source[0]}"; printf -v '\''sources[1]'\'' %s "${source[1]}"; printf -v '\''sources[2]'\'' %s "${source[2]}"; printf -v '\''sources[3]'\'' %s "${source[3]}";' | |
++ printf -v 'sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'sources[1]' %s synergys_at.socket | |
++ printf -v 'sources[2]' %s synergys_at.service | |
++ printf -v 'sources[3]' %s fix-incompetence.patch | |
+ (( 0 == 0 && 4 == 0 )) | |
+ (( 0 == 4 )) | |
+ (( 0 )) | |
+ return 1 | |
+ case $1 in | |
+ verify_integrity_sums md5 x86_64 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=md5 arch=x86_64 integrity_sums sources | |
+ [[ -n x86_64 ]] | |
+ array_build integrity_sums md5sums_x86_64 | |
+ local dest=integrity_sums src=md5sums_x86_64 i keys values | |
+ declare -p md5sums_x86_64 | |
+ return 1 | |
+ array_build sources source_x86_64 | |
+ local dest=sources src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ (( 0 == 0 && 0 == 0 )) | |
+ return 1 | |
+ for integ in '"${known_hash_algos[@]}"' | |
+ verify_integrity_sums sha1 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha1 arch= integrity_sums sources | |
+ [[ -n '' ]] | |
+ array_build integrity_sums sha1sums | |
+ local dest=integrity_sums src=sha1sums i keys values | |
+ declare -p sha1sums | |
+ eval 'keys=("${!sha1sums[@]}")' | |
++ keys=("${!sha1sums[@]}") | |
+ eval 'integrity_sums=()' | |
++ integrity_sums=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''integrity_sums[0]'\'' %s "${sha1sums[0]}"; printf -v '\''integrity_sums[1]'\'' %s "${sha1sums[1]}"; printf -v '\''integrity_sums[2]'\'' %s "${sha1sums[2]}"; printf -v '\''integrity_sums[3]'\'' %s "${sha1sums[3]}";' | |
++ printf -v 'integrity_sums[0]' %s SKIP | |
++ printf -v 'integrity_sums[1]' %s 7ec33221725fc496b807e0f435c5e87b590beb5d | |
++ printf -v 'integrity_sums[2]' %s 65ab58cc3546d6374a05a6a260f15045632e43ce | |
++ printf -v 'integrity_sums[3]' %s 10a899901ef62828280f21979625495f4da159f5 | |
+ array_build sources source | |
+ local dest=sources src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'sources=()' | |
++ sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''sources[0]'\'' %s "${source[0]}"; printf -v '\''sources[1]'\'' %s "${source[1]}"; printf -v '\''sources[2]'\'' %s "${source[2]}"; printf -v '\''sources[3]'\'' %s "${source[3]}";' | |
++ printf -v 'sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'sources[1]' %s synergys_at.socket | |
++ printf -v 'sources[2]' %s synergys_at.service | |
++ printf -v 'sources[3]' %s fix-incompetence.patch | |
+ (( 4 == 0 && 4 == 0 )) | |
+ (( 4 == 4 )) | |
++ gettext 'Validating source files with %s...' | |
+ msg 'Validating source files with %s...' sha1sums | |
+ local 'mesg=Validating source files with %s...' | |
+ shift | |
+ printf '==> Validating source files with %s...\n' sha1sums | |
==> Validating source files with sha1sums... | |
+ local idx errors=0 | |
+ (( idx = 0 )) | |
+ (( idx < 4 )) | |
+ verify_integrity_one synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz sha1 SKIP | |
+ local source_name=synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz integ=sha1 expectedsum=SKIP | |
++ get_filename synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ local netfile=synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *::* ]] | |
++ printf '%s\n' synergy-1.7.4.tar.gz | |
++ return | |
+ local file=synergy-1.7.4.tar.gz | |
+ printf ' %s ... ' synergy-1.7.4.tar.gz | |
synergy-1.7.4.tar.gz ... + [[ SKIP = \S\K\I\P ]] | |
++ gettext Skipped | |
+ printf '%s\n' Skipped | |
Skipped | |
+ return | |
+ (( idx++ )) | |
+ (( idx < 4 )) | |
+ verify_integrity_one synergys_at.socket sha1 7ec33221725fc496b807e0f435c5e87b590beb5d | |
+ local source_name=synergys_at.socket integ=sha1 expectedsum=7ec33221725fc496b807e0f435c5e87b590beb5d | |
++ get_filename synergys_at.socket | |
++ local netfile=synergys_at.socket | |
++ [[ synergys_at.socket = *::* ]] | |
+++ get_protocol synergys_at.socket | |
+++ [[ synergys_at.socket = *://* ]] | |
+++ [[ synergys_at.socket = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ filename=synergys_at.socket | |
++ printf '%s\n' synergys_at.socket | |
+ local file=synergys_at.socket | |
+ printf ' %s ... ' synergys_at.socket | |
synergys_at.socket ... + [[ 7ec33221725fc496b807e0f435c5e87b590beb5d = \S\K\I\P ]] | |
++ get_filepath synergys_at.socket | |
+++ get_filename synergys_at.socket | |
+++ local netfile=synergys_at.socket | |
+++ [[ synergys_at.socket = *::* ]] | |
++++ get_protocol synergys_at.socket | |
++++ [[ synergys_at.socket = *://* ]] | |
++++ [[ synergys_at.socket = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=synergys_at.socket | |
+++ printf '%s\n' synergys_at.socket | |
++ local file=synergys_at.socket | |
+++ get_protocol synergys_at.socket | |
+++ [[ synergys_at.socket = *://* ]] | |
+++ [[ synergys_at.socket = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergys_at.socket ]] | |
++ file=/home/despairblue/git/synergy/synergys_at.socket | |
++ printf '%s\n' /home/despairblue/git/synergy/synergys_at.socket | |
+ file=/home/despairblue/git/synergy/synergys_at.socket | |
++ openssl dgst -sha1 /home/despairblue/git/synergy/synergys_at.socket | |
+ local 'realsum=SHA1(/home/despairblue/git/synergy/synergys_at.socket)= 7ec33221725fc496b807e0f435c5e87b590beb5d' | |
+ realsum=7ec33221725fc496b807e0f435c5e87b590beb5d | |
+ [[ 7ec33221725fc496b807e0f435c5e87b590beb5d = \7\e\c\3\3\2\2\1\7\2\5\f\c\4\9\6\b\8\0\7\e\0\f\4\3\5\c\5\e\8\7\b\5\9\0\b\e\b\5\d ]] | |
++ gettext Passed | |
+ printf '%s\n' Passed | |
Passed | |
+ return 0 | |
+ (( idx++ )) | |
+ (( idx < 4 )) | |
+ verify_integrity_one synergys_at.service sha1 65ab58cc3546d6374a05a6a260f15045632e43ce | |
+ local source_name=synergys_at.service integ=sha1 expectedsum=65ab58cc3546d6374a05a6a260f15045632e43ce | |
++ get_filename synergys_at.service | |
++ local netfile=synergys_at.service | |
++ [[ synergys_at.service = *::* ]] | |
+++ get_protocol synergys_at.service | |
+++ [[ synergys_at.service = *://* ]] | |
+++ [[ synergys_at.service = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ filename=synergys_at.service | |
++ printf '%s\n' synergys_at.service | |
+ local file=synergys_at.service | |
+ printf ' %s ... ' synergys_at.service | |
synergys_at.service ... + [[ 65ab58cc3546d6374a05a6a260f15045632e43ce = \S\K\I\P ]] | |
++ get_filepath synergys_at.service | |
+++ get_filename synergys_at.service | |
+++ local netfile=synergys_at.service | |
+++ [[ synergys_at.service = *::* ]] | |
++++ get_protocol synergys_at.service | |
++++ [[ synergys_at.service = *://* ]] | |
++++ [[ synergys_at.service = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=synergys_at.service | |
+++ printf '%s\n' synergys_at.service | |
++ local file=synergys_at.service | |
+++ get_protocol synergys_at.service | |
+++ [[ synergys_at.service = *://* ]] | |
+++ [[ synergys_at.service = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergys_at.service ]] | |
++ file=/home/despairblue/git/synergy/synergys_at.service | |
++ printf '%s\n' /home/despairblue/git/synergy/synergys_at.service | |
+ file=/home/despairblue/git/synergy/synergys_at.service | |
++ openssl dgst -sha1 /home/despairblue/git/synergy/synergys_at.service | |
+ local 'realsum=SHA1(/home/despairblue/git/synergy/synergys_at.service)= 65ab58cc3546d6374a05a6a260f15045632e43ce' | |
+ realsum=65ab58cc3546d6374a05a6a260f15045632e43ce | |
+ [[ 65ab58cc3546d6374a05a6a260f15045632e43ce = \6\5\a\b\5\8\c\c\3\5\4\6\d\6\3\7\4\a\0\5\a\6\a\2\6\0\f\1\5\0\4\5\6\3\2\e\4\3\c\e ]] | |
++ gettext Passed | |
+ printf '%s\n' Passed | |
Passed | |
+ return 0 | |
+ (( idx++ )) | |
+ (( idx < 4 )) | |
+ verify_integrity_one fix-incompetence.patch sha1 10a899901ef62828280f21979625495f4da159f5 | |
+ local source_name=fix-incompetence.patch integ=sha1 expectedsum=10a899901ef62828280f21979625495f4da159f5 | |
++ get_filename fix-incompetence.patch | |
++ local netfile=fix-incompetence.patch | |
++ [[ fix-incompetence.patch = *::* ]] | |
+++ get_protocol fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *://* ]] | |
+++ [[ fix-incompetence.patch = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ filename=fix-incompetence.patch | |
++ printf '%s\n' fix-incompetence.patch | |
+ local file=fix-incompetence.patch | |
+ printf ' %s ... ' fix-incompetence.patch | |
fix-incompetence.patch ... + [[ 10a899901ef62828280f21979625495f4da159f5 = \S\K\I\P ]] | |
++ get_filepath fix-incompetence.patch | |
+++ get_filename fix-incompetence.patch | |
+++ local netfile=fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *::* ]] | |
++++ get_protocol fix-incompetence.patch | |
++++ [[ fix-incompetence.patch = *://* ]] | |
++++ [[ fix-incompetence.patch = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=fix-incompetence.patch | |
+++ printf '%s\n' fix-incompetence.patch | |
++ local file=fix-incompetence.patch | |
+++ get_protocol fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *://* ]] | |
+++ [[ fix-incompetence.patch = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/fix-incompetence.patch ]] | |
++ file=/home/despairblue/git/synergy/fix-incompetence.patch | |
++ printf '%s\n' /home/despairblue/git/synergy/fix-incompetence.patch | |
+ file=/home/despairblue/git/synergy/fix-incompetence.patch | |
++ openssl dgst -sha1 /home/despairblue/git/synergy/fix-incompetence.patch | |
+ local 'realsum=SHA1(/home/despairblue/git/synergy/fix-incompetence.patch)= 10a899901ef62828280f21979625495f4da159f5' | |
+ realsum=10a899901ef62828280f21979625495f4da159f5 | |
+ [[ 10a899901ef62828280f21979625495f4da159f5 = \1\0\a\8\9\9\9\0\1\e\f\6\2\8\2\8\2\8\0\f\2\1\9\7\9\6\2\5\4\9\5\f\4\d\a\1\5\9\f\5 ]] | |
++ gettext Passed | |
+ printf '%s\n' Passed | |
Passed | |
+ return 0 | |
+ (( idx++ )) | |
+ (( idx < 4 )) | |
+ (( errors )) | |
+ unset 'correlation[source]' | |
+ case $1 in | |
+ verify_integrity_sums sha1 x86_64 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha1 arch=x86_64 integrity_sums sources | |
+ [[ -n x86_64 ]] | |
+ array_build integrity_sums sha1sums_x86_64 | |
+ local dest=integrity_sums src=sha1sums_x86_64 i keys values | |
+ declare -p sha1sums_x86_64 | |
+ return 1 | |
+ array_build sources source_x86_64 | |
+ local dest=sources src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ (( 0 == 0 && 0 == 0 )) | |
+ return 1 | |
+ for integ in '"${known_hash_algos[@]}"' | |
+ verify_integrity_sums sha224 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha224 arch= integrity_sums sources | |
+ [[ -n '' ]] | |
+ array_build integrity_sums sha224sums | |
+ local dest=integrity_sums src=sha224sums i keys values | |
+ declare -p sha224sums | |
+ return 1 | |
+ array_build sources source | |
+ local dest=sources src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'sources=()' | |
++ sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''sources[0]'\'' %s "${source[0]}"; printf -v '\''sources[1]'\'' %s "${source[1]}"; printf -v '\''sources[2]'\'' %s "${source[2]}"; printf -v '\''sources[3]'\'' %s "${source[3]}";' | |
++ printf -v 'sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'sources[1]' %s synergys_at.socket | |
++ printf -v 'sources[2]' %s synergys_at.service | |
++ printf -v 'sources[3]' %s fix-incompetence.patch | |
+ (( 0 == 0 && 4 == 0 )) | |
+ (( 0 == 4 )) | |
+ (( 0 )) | |
+ return 1 | |
+ case $1 in | |
+ verify_integrity_sums sha224 x86_64 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha224 arch=x86_64 integrity_sums sources | |
+ [[ -n x86_64 ]] | |
+ array_build integrity_sums sha224sums_x86_64 | |
+ local dest=integrity_sums src=sha224sums_x86_64 i keys values | |
+ declare -p sha224sums_x86_64 | |
+ return 1 | |
+ array_build sources source_x86_64 | |
+ local dest=sources src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ (( 0 == 0 && 0 == 0 )) | |
+ return 1 | |
+ for integ in '"${known_hash_algos[@]}"' | |
+ verify_integrity_sums sha256 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha256 arch= integrity_sums sources | |
+ [[ -n '' ]] | |
+ array_build integrity_sums sha256sums | |
+ local dest=integrity_sums src=sha256sums i keys values | |
+ declare -p sha256sums | |
+ return 1 | |
+ array_build sources source | |
+ local dest=sources src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'sources=()' | |
++ sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''sources[0]'\'' %s "${source[0]}"; printf -v '\''sources[1]'\'' %s "${source[1]}"; printf -v '\''sources[2]'\'' %s "${source[2]}"; printf -v '\''sources[3]'\'' %s "${source[3]}";' | |
++ printf -v 'sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'sources[1]' %s synergys_at.socket | |
++ printf -v 'sources[2]' %s synergys_at.service | |
++ printf -v 'sources[3]' %s fix-incompetence.patch | |
+ (( 0 == 0 && 4 == 0 )) | |
+ (( 0 == 4 )) | |
+ (( 0 )) | |
+ return 1 | |
+ case $1 in | |
+ verify_integrity_sums sha256 x86_64 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha256 arch=x86_64 integrity_sums sources | |
+ [[ -n x86_64 ]] | |
+ array_build integrity_sums sha256sums_x86_64 | |
+ local dest=integrity_sums src=sha256sums_x86_64 i keys values | |
+ declare -p sha256sums_x86_64 | |
+ return 1 | |
+ array_build sources source_x86_64 | |
+ local dest=sources src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ (( 0 == 0 && 0 == 0 )) | |
+ return 1 | |
+ for integ in '"${known_hash_algos[@]}"' | |
+ verify_integrity_sums sha384 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha384 arch= integrity_sums sources | |
+ [[ -n '' ]] | |
+ array_build integrity_sums sha384sums | |
+ local dest=integrity_sums src=sha384sums i keys values | |
+ declare -p sha384sums | |
+ return 1 | |
+ array_build sources source | |
+ local dest=sources src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'sources=()' | |
++ sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''sources[0]'\'' %s "${source[0]}"; printf -v '\''sources[1]'\'' %s "${source[1]}"; printf -v '\''sources[2]'\'' %s "${source[2]}"; printf -v '\''sources[3]'\'' %s "${source[3]}";' | |
++ printf -v 'sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'sources[1]' %s synergys_at.socket | |
++ printf -v 'sources[2]' %s synergys_at.service | |
++ printf -v 'sources[3]' %s fix-incompetence.patch | |
+ (( 0 == 0 && 4 == 0 )) | |
+ (( 0 == 4 )) | |
+ (( 0 )) | |
+ return 1 | |
+ case $1 in | |
+ verify_integrity_sums sha384 x86_64 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha384 arch=x86_64 integrity_sums sources | |
+ [[ -n x86_64 ]] | |
+ array_build integrity_sums sha384sums_x86_64 | |
+ local dest=integrity_sums src=sha384sums_x86_64 i keys values | |
+ declare -p sha384sums_x86_64 | |
+ return 1 | |
+ array_build sources source_x86_64 | |
+ local dest=sources src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ (( 0 == 0 && 0 == 0 )) | |
+ return 1 | |
+ for integ in '"${known_hash_algos[@]}"' | |
+ verify_integrity_sums sha512 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha512 arch= integrity_sums sources | |
+ [[ -n '' ]] | |
+ array_build integrity_sums sha512sums | |
+ local dest=integrity_sums src=sha512sums i keys values | |
+ declare -p sha512sums | |
+ return 1 | |
+ array_build sources source | |
+ local dest=sources src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'sources=()' | |
++ sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''sources[0]'\'' %s "${source[0]}"; printf -v '\''sources[1]'\'' %s "${source[1]}"; printf -v '\''sources[2]'\'' %s "${source[2]}"; printf -v '\''sources[3]'\'' %s "${source[3]}";' | |
++ printf -v 'sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'sources[1]' %s synergys_at.socket | |
++ printf -v 'sources[2]' %s synergys_at.service | |
++ printf -v 'sources[3]' %s fix-incompetence.patch | |
+ (( 0 == 0 && 4 == 0 )) | |
+ (( 0 == 4 )) | |
+ (( 0 )) | |
+ return 1 | |
+ case $1 in | |
+ verify_integrity_sums sha512 x86_64 | |
+ integrity_sums=() | |
+ sources=() | |
+ local integ=sha512 arch=x86_64 integrity_sums sources | |
+ [[ -n x86_64 ]] | |
+ array_build integrity_sums sha512sums_x86_64 | |
+ local dest=integrity_sums src=sha512sums_x86_64 i keys values | |
+ declare -p sha512sums_x86_64 | |
+ return 1 | |
+ array_build sources source_x86_64 | |
+ local dest=sources src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ (( 0 == 0 && 0 == 0 )) | |
+ return 1 | |
+ (( 0 )) | |
+ check_pgpsigs | |
+ (( SKIPPGPCHECK )) | |
+ source_has_signatures | |
+ local file all_sources | |
+ get_all_sources_for_arch all_sources | |
+ local aggregate l | |
+ array_build l source | |
+ local dest=l src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'l=()' | |
++ l=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''l[0]'\'' %s "${source[0]}"; printf -v '\''l[1]'\'' %s "${source[1]}"; printf -v '\''l[2]'\'' %s "${source[2]}"; printf -v '\''l[3]'\'' %s "${source[3]}";' | |
++ printf -v 'l[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'l[1]' %s synergys_at.socket | |
++ printf -v 'l[2]' %s synergys_at.service | |
++ printf -v 'l[3]' %s fix-incompetence.patch | |
+ aggregate+=("${l[@]}") | |
+ array_build l source_x86_64 | |
+ local dest=l src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ array_build all_sources aggregate | |
+ local dest=all_sources src=aggregate i keys values | |
+ declare -p aggregate | |
+ eval 'keys=("${!aggregate[@]}")' | |
++ keys=("${!aggregate[@]}") | |
+ eval 'all_sources=()' | |
++ all_sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''all_sources[0]'\'' %s "${aggregate[0]}"; printf -v '\''all_sources[1]'\'' %s "${aggregate[1]}"; printf -v '\''all_sources[2]'\'' %s "${aggregate[2]}"; printf -v '\''all_sources[3]'\'' %s "${aggregate[3]}";' | |
++ printf -v 'all_sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'all_sources[1]' %s synergys_at.socket | |
++ printf -v 'all_sources[2]' %s synergys_at.service | |
++ printf -v 'all_sources[3]' %s fix-incompetence.patch | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergy-1.7.4.tar.gz = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergys_at.socket = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergys_at.service = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ fix-incompetence.patch = *.@(sig?(n)|asc) ]] | |
+ return 1 | |
+ return 0 | |
+ (( VERIFYSOURCE )) | |
+ (( CLEANBUILD )) | |
+ extract_sources | |
++ gettext 'Extracting sources...' | |
+ msg 'Extracting sources...' | |
+ local 'mesg=Extracting sources...' | |
+ shift | |
+ printf '==> Extracting sources...\n' | |
==> Extracting sources... | |
+ local netfile all_sources | |
+ get_all_sources_for_arch all_sources | |
+ local aggregate l | |
+ array_build l source | |
+ local dest=l src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'l=()' | |
++ l=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''l[0]'\'' %s "${source[0]}"; printf -v '\''l[1]'\'' %s "${source[1]}"; printf -v '\''l[2]'\'' %s "${source[2]}"; printf -v '\''l[3]'\'' %s "${source[3]}";' | |
++ printf -v 'l[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'l[1]' %s synergys_at.socket | |
++ printf -v 'l[2]' %s synergys_at.service | |
++ printf -v 'l[3]' %s fix-incompetence.patch | |
+ aggregate+=("${l[@]}") | |
+ array_build l source_x86_64 | |
+ local dest=l src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ array_build all_sources aggregate | |
+ local dest=all_sources src=aggregate i keys values | |
+ declare -p aggregate | |
+ eval 'keys=("${!aggregate[@]}")' | |
++ keys=("${!aggregate[@]}") | |
+ eval 'all_sources=()' | |
++ all_sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''all_sources[0]'\'' %s "${aggregate[0]}"; printf -v '\''all_sources[1]'\'' %s "${aggregate[1]}"; printf -v '\''all_sources[2]'\'' %s "${aggregate[2]}"; printf -v '\''all_sources[3]'\'' %s "${aggregate[3]}";' | |
++ printf -v 'all_sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'all_sources[1]' %s synergys_at.socket | |
++ printf -v 'all_sources[2]' %s synergys_at.service | |
++ printf -v 'all_sources[3]' %s fix-incompetence.patch | |
+ for netfile in '"${all_sources[@]}"' | |
++ get_filename synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ local netfile=synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *::* ]] | |
++ printf '%s\n' synergy-1.7.4.tar.gz | |
++ return | |
+ local file=synergy-1.7.4.tar.gz | |
++ get_protocol synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *://* ]] | |
++ local proto=http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf '%s\n' http | |
+ local proto=http | |
+ case "$proto" in | |
+ extract_file synergy-1.7.4.tar.gz | |
+ local file=synergy-1.7.4.tar.gz | |
++ get_filepath synergy-1.7.4.tar.gz | |
+++ get_filename synergy-1.7.4.tar.gz | |
+++ local netfile=synergy-1.7.4.tar.gz | |
+++ [[ synergy-1.7.4.tar.gz = *::* ]] | |
++++ get_protocol synergy-1.7.4.tar.gz | |
++++ [[ synergy-1.7.4.tar.gz = *://* ]] | |
++++ [[ synergy-1.7.4.tar.gz = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=synergy-1.7.4.tar.gz | |
+++ printf '%s\n' synergy-1.7.4.tar.gz | |
++ local file=synergy-1.7.4.tar.gz | |
+++ get_protocol synergy-1.7.4.tar.gz | |
+++ [[ synergy-1.7.4.tar.gz = *://* ]] | |
+++ [[ synergy-1.7.4.tar.gz = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergy-1.7.4.tar.gz ]] | |
++ file=/home/despairblue/git/synergy/synergy-1.7.4.tar.gz | |
++ printf '%s\n' /home/despairblue/git/synergy/synergy-1.7.4.tar.gz | |
+ local filepath=/home/despairblue/git/synergy/synergy-1.7.4.tar.gz | |
+ rm -f /home/despairblue/git/synergy/src/synergy-1.7.4.tar.gz | |
+ ln -s /home/despairblue/git/synergy/synergy-1.7.4.tar.gz /home/despairblue/git/synergy/src/ | |
+ in_array synergy-1.7.4.tar.gz | |
+ local needle=synergy-1.7.4.tar.gz | |
+ shift | |
+ local item | |
+ return 1 | |
++ file -bizL synergy-1.7.4.tar.gz | |
+ local 'file_type=application/x-tar; charset=binary compressed-encoding=application/x-gzip; charset=binary' | |
+ local ext=gz | |
+ local cmd= | |
+ case "$file_type" in | |
+ cmd=bsdtar | |
+ local ret=0 | |
++ gettext 'Extracting %s with %s' | |
+ msg2 'Extracting %s with %s' synergy-1.7.4.tar.gz bsdtar | |
+ local 'mesg=Extracting %s with %s' | |
+ shift | |
+ printf ' -> Extracting %s with %s\n' synergy-1.7.4.tar.gz bsdtar | |
-> Extracting synergy-1.7.4.tar.gz with bsdtar | |
+ [[ bsdtar = \b\s\d\t\a\r ]] | |
+ bsdtar -xf synergy-1.7.4.tar.gz | |
+ (( ret )) | |
+ (( EUID == 0 )) | |
+ for netfile in '"${all_sources[@]}"' | |
++ get_filename synergys_at.socket | |
++ local netfile=synergys_at.socket | |
++ [[ synergys_at.socket = *::* ]] | |
+++ get_protocol synergys_at.socket | |
+++ [[ synergys_at.socket = *://* ]] | |
+++ [[ synergys_at.socket = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ filename=synergys_at.socket | |
++ printf '%s\n' synergys_at.socket | |
+ local file=synergys_at.socket | |
++ get_protocol synergys_at.socket | |
++ [[ synergys_at.socket = *://* ]] | |
++ [[ synergys_at.socket = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case "$proto" in | |
+ extract_file synergys_at.socket | |
+ local file=synergys_at.socket | |
++ get_filepath synergys_at.socket | |
+++ get_filename synergys_at.socket | |
+++ local netfile=synergys_at.socket | |
+++ [[ synergys_at.socket = *::* ]] | |
++++ get_protocol synergys_at.socket | |
++++ [[ synergys_at.socket = *://* ]] | |
++++ [[ synergys_at.socket = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=synergys_at.socket | |
+++ printf '%s\n' synergys_at.socket | |
++ local file=synergys_at.socket | |
+++ get_protocol synergys_at.socket | |
+++ [[ synergys_at.socket = *://* ]] | |
+++ [[ synergys_at.socket = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergys_at.socket ]] | |
++ file=/home/despairblue/git/synergy/synergys_at.socket | |
++ printf '%s\n' /home/despairblue/git/synergy/synergys_at.socket | |
+ local filepath=/home/despairblue/git/synergy/synergys_at.socket | |
+ rm -f /home/despairblue/git/synergy/src/synergys_at.socket | |
+ ln -s /home/despairblue/git/synergy/synergys_at.socket /home/despairblue/git/synergy/src/ | |
+ in_array synergys_at.socket | |
+ local needle=synergys_at.socket | |
+ shift | |
+ local item | |
+ return 1 | |
++ file -bizL synergys_at.socket | |
+ local 'file_type=text/plain; charset=us-ascii' | |
+ local ext=socket | |
+ local cmd= | |
+ case "$file_type" in | |
+ bsdtar -tf synergys_at.socket -q '*' | |
+ return 0 | |
+ for netfile in '"${all_sources[@]}"' | |
++ get_filename synergys_at.service | |
++ local netfile=synergys_at.service | |
++ [[ synergys_at.service = *::* ]] | |
+++ get_protocol synergys_at.service | |
+++ [[ synergys_at.service = *://* ]] | |
+++ [[ synergys_at.service = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ filename=synergys_at.service | |
++ printf '%s\n' synergys_at.service | |
+ local file=synergys_at.service | |
++ get_protocol synergys_at.service | |
++ [[ synergys_at.service = *://* ]] | |
++ [[ synergys_at.service = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case "$proto" in | |
+ extract_file synergys_at.service | |
+ local file=synergys_at.service | |
++ get_filepath synergys_at.service | |
+++ get_filename synergys_at.service | |
+++ local netfile=synergys_at.service | |
+++ [[ synergys_at.service = *::* ]] | |
++++ get_protocol synergys_at.service | |
++++ [[ synergys_at.service = *://* ]] | |
++++ [[ synergys_at.service = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=synergys_at.service | |
+++ printf '%s\n' synergys_at.service | |
++ local file=synergys_at.service | |
+++ get_protocol synergys_at.service | |
+++ [[ synergys_at.service = *://* ]] | |
+++ [[ synergys_at.service = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/synergys_at.service ]] | |
++ file=/home/despairblue/git/synergy/synergys_at.service | |
++ printf '%s\n' /home/despairblue/git/synergy/synergys_at.service | |
+ local filepath=/home/despairblue/git/synergy/synergys_at.service | |
+ rm -f /home/despairblue/git/synergy/src/synergys_at.service | |
+ ln -s /home/despairblue/git/synergy/synergys_at.service /home/despairblue/git/synergy/src/ | |
+ in_array synergys_at.service | |
+ local needle=synergys_at.service | |
+ shift | |
+ local item | |
+ return 1 | |
++ file -bizL synergys_at.service | |
+ local 'file_type=text/plain; charset=us-ascii' | |
+ local ext=service | |
+ local cmd= | |
+ case "$file_type" in | |
+ bsdtar -tf synergys_at.service -q '*' | |
+ return 0 | |
+ for netfile in '"${all_sources[@]}"' | |
++ get_filename fix-incompetence.patch | |
++ local netfile=fix-incompetence.patch | |
++ [[ fix-incompetence.patch = *::* ]] | |
+++ get_protocol fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *://* ]] | |
+++ [[ fix-incompetence.patch = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ filename=fix-incompetence.patch | |
++ printf '%s\n' fix-incompetence.patch | |
+ local file=fix-incompetence.patch | |
++ get_protocol fix-incompetence.patch | |
++ [[ fix-incompetence.patch = *://* ]] | |
++ [[ fix-incompetence.patch = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case "$proto" in | |
+ extract_file fix-incompetence.patch | |
+ local file=fix-incompetence.patch | |
++ get_filepath fix-incompetence.patch | |
+++ get_filename fix-incompetence.patch | |
+++ local netfile=fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *::* ]] | |
++++ get_protocol fix-incompetence.patch | |
++++ [[ fix-incompetence.patch = *://* ]] | |
++++ [[ fix-incompetence.patch = *lp:* ]] | |
++++ printf '%s\n' local | |
+++ local proto=local | |
+++ case $proto in | |
+++ filename=fix-incompetence.patch | |
+++ printf '%s\n' fix-incompetence.patch | |
++ local file=fix-incompetence.patch | |
+++ get_protocol fix-incompetence.patch | |
+++ [[ fix-incompetence.patch = *://* ]] | |
+++ [[ fix-incompetence.patch = *lp:* ]] | |
+++ printf '%s\n' local | |
++ local proto=local | |
++ case $proto in | |
++ [[ -f /home/despairblue/git/synergy/fix-incompetence.patch ]] | |
++ file=/home/despairblue/git/synergy/fix-incompetence.patch | |
++ printf '%s\n' /home/despairblue/git/synergy/fix-incompetence.patch | |
+ local filepath=/home/despairblue/git/synergy/fix-incompetence.patch | |
+ rm -f /home/despairblue/git/synergy/src/fix-incompetence.patch | |
+ ln -s /home/despairblue/git/synergy/fix-incompetence.patch /home/despairblue/git/synergy/src/ | |
+ in_array fix-incompetence.patch | |
+ local needle=fix-incompetence.patch | |
+ shift | |
+ local item | |
+ return 1 | |
++ file -bizL fix-incompetence.patch | |
+ local 'file_type=text/x-diff; charset=us-ascii' | |
+ local ext=patch | |
+ local cmd= | |
+ case "$file_type" in | |
+ bsdtar -tf fix-incompetence.patch -q '*' | |
+ return 0 | |
+ (( PKGVERFUNC )) | |
+ (( PREPAREFUNC )) | |
+ run_prepare | |
+ run_function_safe prepare | |
+ local restoretrap | |
+ set -e | |
+ set -E | |
++ trap -p ERR | |
+ restoretrap= | |
+ trap 'error_function $pkgfunc' ERR | |
+ run_function prepare | |
+ [[ -z prepare ]] | |
+ local pkgfunc=prepare | |
+ check_option buildflags n | |
+ in_opt_array buildflags | |
+ local needle=buildflags | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array buildflags strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=buildflags | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !debug = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !upx = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ purge = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ zipman = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=emptydirs | |
+ [[ emptydirs = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ emptydirs = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!staticlibs' | |
+ [[ !staticlibs = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !staticlibs = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!libtool' | |
+ [[ !libtool = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !libtool = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=docs | |
+ [[ docs = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ docs = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=strip | |
+ [[ strip = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ strip = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ return 127 | |
+ check_option debug y | |
+ in_opt_array debug | |
+ local needle=debug | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array debug strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=debug | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \d\e\b\u\g ]] | |
+ [[ !debug = \!\d\e\b\u\g ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = n ]] | |
+ return | |
+ check_option makeflags n | |
+ in_opt_array makeflags | |
+ local needle=makeflags | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array makeflags strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=makeflags | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !debug = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !upx = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ purge = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ zipman = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=emptydirs | |
+ [[ emptydirs = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ emptydirs = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!staticlibs' | |
+ [[ !staticlibs = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !staticlibs = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!libtool' | |
+ [[ !libtool = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !libtool = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=docs | |
+ [[ docs = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ docs = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=strip | |
+ [[ strip = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ strip = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ return 127 | |
++ gettext 'Starting %s()...' | |
+ msg 'Starting %s()...' prepare | |
+ local 'mesg=Starting %s()...' | |
+ shift | |
+ printf '==> Starting %s()...\n' prepare | |
==> Starting prepare()... | |
+ cd_safe /home/despairblue/git/synergy/src | |
+ cd /home/despairblue/git/synergy/src | |
+ export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS MAKEFLAGS CHOST | |
++ shopt -p | |
+ local 'shellopts=shopt -u autocd | |
shopt -u cdable_vars | |
shopt -u cdspell | |
shopt -u checkhash | |
shopt -u checkjobs | |
shopt -u checkwinsize | |
shopt -s cmdhist | |
shopt -u compat31 | |
shopt -u compat32 | |
shopt -u compat40 | |
shopt -u compat41 | |
shopt -u compat42 | |
shopt -s complete_fullquote | |
shopt -u direxpand | |
shopt -u dirspell | |
shopt -u dotglob | |
shopt -u execfail | |
shopt -u expand_aliases | |
shopt -u extdebug | |
shopt -s extglob | |
shopt -s extquote | |
shopt -u failglob | |
shopt -s force_fignore | |
shopt -u globstar | |
shopt -u globasciiranges | |
shopt -u gnu_errfmt | |
shopt -u histappend | |
shopt -u histreedit | |
shopt -u histverify | |
shopt -s hostcomplete | |
shopt -u huponexit | |
shopt -s interactive_comments | |
shopt -u lastpipe | |
shopt -u lithist | |
shopt -u login_shell | |
shopt -u mailwarn | |
shopt -u no_empty_cmd_completion | |
shopt -u nocaseglob | |
shopt -u nocasematch | |
shopt -u nullglob | |
shopt -s progcomp | |
shopt -s promptvars | |
shopt -u restricted_shell | |
shopt -u shift_verbose | |
shopt -s sourcepath | |
shopt -u xpg_echo' | |
+ local ret=0 | |
+ (( LOGGING )) | |
+ prepare | |
+ cd /home/despairblue/git/synergy/src/synergy-1.7.4-Source | |
+ cd ext | |
+ unzip gmock-1.6.0.zip -d gmock-1.6.0 | |
replace gmock-1.6.0/aclocal.m4? [y]es, [n]o, [A]ll, [N]one, [r]ename: + unzip gtest-1.6.0.zip -d gtest-1.6.0 | |
replace gtest-1.6.0/aclocal.m4? [y]es, [n]o, [A]ll, [N]one, [r]ename: + eval 'shopt -u autocd | |
shopt -u cdable_vars | |
shopt -u cdspell | |
shopt -u checkhash | |
shopt -u checkjobs | |
shopt -u checkwinsize | |
shopt -s cmdhist | |
shopt -u compat31 | |
shopt -u compat32 | |
shopt -u compat40 | |
shopt -u compat41 | |
shopt -u compat42 | |
shopt -s complete_fullquote | |
shopt -u direxpand | |
shopt -u dirspell | |
shopt -u dotglob | |
shopt -u execfail | |
shopt -u expand_aliases | |
shopt -u extdebug | |
shopt -s extglob | |
shopt -s extquote | |
shopt -u failglob | |
shopt -s force_fignore | |
shopt -u globstar | |
shopt -u globasciiranges | |
shopt -u gnu_errfmt | |
shopt -u histappend | |
shopt -u histreedit | |
shopt -u histverify | |
shopt -s hostcomplete | |
shopt -u huponexit | |
shopt -s interactive_comments | |
shopt -u lastpipe | |
shopt -u lithist | |
shopt -u login_shell | |
shopt -u mailwarn | |
shopt -u no_empty_cmd_completion | |
shopt -u nocaseglob | |
shopt -u nocasematch | |
shopt -u nullglob | |
shopt -s progcomp | |
shopt -s promptvars | |
shopt -u restricted_shell | |
shopt -u shift_verbose | |
shopt -s sourcepath | |
shopt -u xpg_echo' | |
++ shopt -u autocd | |
++ shopt -u cdable_vars | |
++ shopt -u cdspell | |
++ shopt -u checkhash | |
++ shopt -u checkjobs | |
++ shopt -u checkwinsize | |
++ shopt -s cmdhist | |
++ shopt -u compat31 | |
++ shopt -u compat32 | |
++ shopt -u compat40 | |
++ shopt -u compat41 | |
++ shopt -u compat42 | |
++ shopt -s complete_fullquote | |
++ shopt -u direxpand | |
++ shopt -u dirspell | |
++ shopt -u dotglob | |
++ shopt -u execfail | |
++ shopt -u expand_aliases | |
++ shopt -u extdebug | |
++ shopt -s extglob | |
++ shopt -s extquote | |
++ shopt -u failglob | |
++ shopt -s force_fignore | |
++ shopt -u globstar | |
++ shopt -u globasciiranges | |
++ shopt -u gnu_errfmt | |
++ shopt -u histappend | |
++ shopt -u histreedit | |
++ shopt -u histverify | |
++ shopt -s hostcomplete | |
++ shopt -u huponexit | |
++ shopt -s interactive_comments | |
++ shopt -u lastpipe | |
++ shopt -u lithist | |
++ shopt -u login_shell | |
++ shopt -u mailwarn | |
++ shopt -u no_empty_cmd_completion | |
++ shopt -u nocaseglob | |
++ shopt -u nocasematch | |
++ shopt -u nullglob | |
++ shopt -s progcomp | |
++ shopt -s promptvars | |
++ shopt -u restricted_shell | |
++ shopt -u shift_verbose | |
++ shopt -s sourcepath | |
++ shopt -u xpg_echo | |
+ eval | |
+ set +E | |
+ set +e | |
+ (( NOBUILD )) | |
+ [[ -d /home/despairblue/git/synergy/pkg ]] | |
++ gettext 'Removing existing %s directory...' | |
+ msg 'Removing existing %s directory...' '$pkgdir/' | |
+ local 'mesg=Removing existing %s directory...' | |
+ shift | |
+ printf '==> Removing existing %s directory...\n' '$pkgdir/' | |
==> Removing existing $pkgdir/ directory... | |
+ rm -rf /home/despairblue/git/synergy/pkg | |
+ mkdir -p /home/despairblue/git/synergy/pkg | |
+ chmod a-srwx /home/despairblue/git/synergy/pkg | |
+ cd_safe /home/despairblue/git/synergy | |
+ cd /home/despairblue/git/synergy | |
+ (( ! REPKG )) | |
+ (( BUILDFUNC )) | |
+ run_build | |
+ check_buildenv distcc y | |
+ in_opt_array distcc fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=distcc | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \d\i\s\t\c\c ]] | |
+ [[ !sign = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \d\i\s\t\c\c ]] | |
+ [[ check = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \d\i\s\t\c\c ]] | |
+ [[ !ccache = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=color | |
+ [[ color = \d\i\s\t\c\c ]] | |
+ [[ color = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!distcc' | |
+ [[ !distcc = \d\i\s\t\c\c ]] | |
+ [[ !distcc = \!\d\i\s\t\c\c ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ check_buildenv ccache y | |
+ in_opt_array ccache fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=ccache | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \c\c\a\c\h\e ]] | |
+ [[ !sign = \!\c\c\a\c\h\e ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \c\c\a\c\h\e ]] | |
+ [[ check = \!\c\c\a\c\h\e ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \c\c\a\c\h\e ]] | |
+ [[ !ccache = \!\c\c\a\c\h\e ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ run_function_safe build | |
+ local restoretrap | |
+ set -e | |
+ set -E | |
++ trap -p ERR | |
+ restoretrap= | |
+ trap 'error_function $pkgfunc' ERR | |
+ run_function build | |
+ [[ -z build ]] | |
+ local pkgfunc=build | |
+ check_option buildflags n | |
+ in_opt_array buildflags | |
+ local needle=buildflags | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array buildflags strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=buildflags | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !debug = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !upx = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ purge = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ zipman = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=emptydirs | |
+ [[ emptydirs = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ emptydirs = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!staticlibs' | |
+ [[ !staticlibs = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !staticlibs = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!libtool' | |
+ [[ !libtool = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ !libtool = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=docs | |
+ [[ docs = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ docs = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=strip | |
+ [[ strip = \b\u\i\l\d\f\l\a\g\s ]] | |
+ [[ strip = \!\b\u\i\l\d\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ return 127 | |
+ check_option debug y | |
+ in_opt_array debug | |
+ local needle=debug | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array debug strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=debug | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \d\e\b\u\g ]] | |
+ [[ !debug = \!\d\e\b\u\g ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = n ]] | |
+ return | |
+ check_option makeflags n | |
+ in_opt_array makeflags | |
+ local needle=makeflags | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array makeflags strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=makeflags | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !debug = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !upx = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ purge = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ zipman = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=emptydirs | |
+ [[ emptydirs = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ emptydirs = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!staticlibs' | |
+ [[ !staticlibs = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !staticlibs = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!libtool' | |
+ [[ !libtool = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ !libtool = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=docs | |
+ [[ docs = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ docs = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=strip | |
+ [[ strip = \m\a\k\e\f\l\a\g\s ]] | |
+ [[ strip = \!\m\a\k\e\f\l\a\g\s ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ return 127 | |
++ gettext 'Starting %s()...' | |
+ msg 'Starting %s()...' build | |
+ local 'mesg=Starting %s()...' | |
+ shift | |
+ printf '==> Starting %s()...\n' build | |
==> Starting build()... | |
+ cd_safe /home/despairblue/git/synergy/src | |
+ cd /home/despairblue/git/synergy/src | |
+ export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS MAKEFLAGS CHOST | |
++ shopt -p | |
+ local 'shellopts=shopt -u autocd | |
shopt -u cdable_vars | |
shopt -u cdspell | |
shopt -u checkhash | |
shopt -u checkjobs | |
shopt -u checkwinsize | |
shopt -s cmdhist | |
shopt -u compat31 | |
shopt -u compat32 | |
shopt -u compat40 | |
shopt -u compat41 | |
shopt -u compat42 | |
shopt -s complete_fullquote | |
shopt -u direxpand | |
shopt -u dirspell | |
shopt -u dotglob | |
shopt -u execfail | |
shopt -u expand_aliases | |
shopt -u extdebug | |
shopt -s extglob | |
shopt -s extquote | |
shopt -u failglob | |
shopt -s force_fignore | |
shopt -u globstar | |
shopt -u globasciiranges | |
shopt -u gnu_errfmt | |
shopt -u histappend | |
shopt -u histreedit | |
shopt -u histverify | |
shopt -s hostcomplete | |
shopt -u huponexit | |
shopt -s interactive_comments | |
shopt -u lastpipe | |
shopt -u lithist | |
shopt -u login_shell | |
shopt -u mailwarn | |
shopt -u no_empty_cmd_completion | |
shopt -u nocaseglob | |
shopt -u nocasematch | |
shopt -u nullglob | |
shopt -s progcomp | |
shopt -s promptvars | |
shopt -u restricted_shell | |
shopt -u shift_verbose | |
shopt -s sourcepath | |
shopt -u xpg_echo' | |
+ local ret=0 | |
+ (( LOGGING )) | |
+ build | |
+ cd /home/despairblue/git/synergy/src/synergy-1.7.4-Source | |
+ cmake -DCMAKE_INSTALL_PREFIX=/usr . | |
+ make | |
+ cd src/gui | |
+ qmake | |
WARNING: Failure to find: src/LocalFilesystemClient.h | |
+ make | |
+ eval 'shopt -u autocd | |
shopt -u cdable_vars | |
shopt -u cdspell | |
shopt -u checkhash | |
shopt -u checkjobs | |
shopt -u checkwinsize | |
shopt -s cmdhist | |
shopt -u compat31 | |
shopt -u compat32 | |
shopt -u compat40 | |
shopt -u compat41 | |
shopt -u compat42 | |
shopt -s complete_fullquote | |
shopt -u direxpand | |
shopt -u dirspell | |
shopt -u dotglob | |
shopt -u execfail | |
shopt -u expand_aliases | |
shopt -u extdebug | |
shopt -s extglob | |
shopt -s extquote | |
shopt -u failglob | |
shopt -s force_fignore | |
shopt -u globstar | |
shopt -u globasciiranges | |
shopt -u gnu_errfmt | |
shopt -u histappend | |
shopt -u histreedit | |
shopt -u histverify | |
shopt -s hostcomplete | |
shopt -u huponexit | |
shopt -s interactive_comments | |
shopt -u lastpipe | |
shopt -u lithist | |
shopt -u login_shell | |
shopt -u mailwarn | |
shopt -u no_empty_cmd_completion | |
shopt -u nocaseglob | |
shopt -u nocasematch | |
shopt -u nullglob | |
shopt -s progcomp | |
shopt -s promptvars | |
shopt -u restricted_shell | |
shopt -u shift_verbose | |
shopt -s sourcepath | |
shopt -u xpg_echo' | |
++ shopt -u autocd | |
++ shopt -u cdable_vars | |
++ shopt -u cdspell | |
++ shopt -u checkhash | |
++ shopt -u checkjobs | |
++ shopt -u checkwinsize | |
++ shopt -s cmdhist | |
++ shopt -u compat31 | |
++ shopt -u compat32 | |
++ shopt -u compat40 | |
++ shopt -u compat41 | |
++ shopt -u compat42 | |
++ shopt -s complete_fullquote | |
++ shopt -u direxpand | |
++ shopt -u dirspell | |
++ shopt -u dotglob | |
++ shopt -u execfail | |
++ shopt -u expand_aliases | |
++ shopt -u extdebug | |
++ shopt -s extglob | |
++ shopt -s extquote | |
++ shopt -u failglob | |
++ shopt -s force_fignore | |
++ shopt -u globstar | |
++ shopt -u globasciiranges | |
++ shopt -u gnu_errfmt | |
++ shopt -u histappend | |
++ shopt -u histreedit | |
++ shopt -u histverify | |
++ shopt -s hostcomplete | |
++ shopt -u huponexit | |
++ shopt -s interactive_comments | |
++ shopt -u lastpipe | |
++ shopt -u lithist | |
++ shopt -u login_shell | |
++ shopt -u mailwarn | |
++ shopt -u no_empty_cmd_completion | |
++ shopt -u nocaseglob | |
++ shopt -u nocasematch | |
++ shopt -u nullglob | |
++ shopt -s progcomp | |
++ shopt -s promptvars | |
++ shopt -u restricted_shell | |
++ shopt -u shift_verbose | |
++ shopt -s sourcepath | |
++ shopt -u xpg_echo | |
+ eval | |
+ set +E | |
+ set +e | |
+ (( CHECKFUNC )) | |
+ cd_safe /home/despairblue/git/synergy | |
+ cd /home/despairblue/git/synergy | |
+ enter_fakeroot | |
++ gettext 'Entering %s environment...' | |
+ msg 'Entering %s environment...' fakeroot | |
+ local 'mesg=Entering %s environment...' | |
+ shift | |
+ printf '==> Entering %s environment...\n' fakeroot | |
==> Entering fakeroot environment... | |
+ fakeroot -- /usr/bin/makepkg -F -i | |
++ pkgver=1.7.4 | |
++ pkgrel=2 | |
++ pkgdesc='Share a single mouse and keyboard between multiple computers' | |
++ url=http://synergy-foss.org | |
++ arch=('i686' 'x86_64') | |
++ depends=('gcc-libs' 'libxtst' 'libxinerama' 'libxkbcommon-x11' 'avahi' 'curl') | |
++ makedepends=('libxt' 'cmake' 'qt5-base' 'unzip') | |
++ optdepends=('qt5-base: gui support' 'openssl: encryption support') | |
++ license=('GPL2') | |
++ source=("synergy-${pkgver}.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz" "synergys_at.socket" "synergys_at.service" fix-incompetence.patch) | |
++ sha1sums=('SKIP' '7ec33221725fc496b807e0f435c5e87b590beb5d' '65ab58cc3546d6374a05a6a260f15045632e43ce' '10a899901ef62828280f21979625495f4da159f5') | |
+ shopt -s extglob | |
+ (( !SOURCEONLY )) | |
+ merge_arch_attrs | |
+ supported_attrs=(provides conflicts depends replaces optdepends makedepends checkdepends) | |
+ local attr supported_attrs | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'provides+=("${provides_x86_64[@]}")' | |
++ provides+=("${provides_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'conflicts+=("${conflicts_x86_64[@]}")' | |
++ conflicts+=("${conflicts_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'depends+=("${depends_x86_64[@]}")' | |
++ depends+=("${depends_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'replaces+=("${replaces_x86_64[@]}")' | |
++ replaces+=("${replaces_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'optdepends+=("${optdepends_x86_64[@]}")' | |
++ optdepends+=("${optdepends_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'makedepends+=("${makedepends_x86_64[@]}")' | |
++ makedepends+=("${makedepends_x86_64[@]}") | |
+ for attr in '"${supported_attrs[@]}"' | |
+ eval 'checkdepends+=("${checkdepends_x86_64[@]}")' | |
++ checkdepends+=("${checkdepends_x86_64[@]}") | |
+ unset -v provides_x86_64 conflicts_x86_64 depends_x86_64 replaces_x86_64 optdepends_x86_64 makedepends_x86_64 checkdepends_x86_64 | |
+ pkgbase= | |
++ get_full_version | |
++ (( epoch > 0 )) | |
++ printf '%s\n' 1.7.4-2 | |
+ basever=1.7.4-2 | |
+ [[ /home/despairblue/git/synergy = \/\h\o\m\e\/\d\e\s\p\a\i\r\b\l\u\e\/\g\i\t\/\s\y\n\e\r\g\y ]] | |
+ srcdir=/home/despairblue/git/synergy/src | |
+ pkgdirbase=/home/despairblue/git/synergy/pkg | |
+ pkgdir=/home/despairblue/git/synergy/pkg/ | |
+ (( GENINTEG )) | |
+ have_function pkgver | |
+ declare -f pkgver | |
+ check_sanity | |
+ local ret=0 | |
+ local lintfn lint_functions | |
+ lint_functions=(lint_pkgbase lint_pkgname lint_pkgver lint_pkgrel lint_epoch lint_arch lint_provides lint_backup lint_optdepends lint_changelog lint_install lint_options lint_packagefn lint_pkglist lint_source) | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgbase | |
+ [[ '' = \- ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgname | |
+ local ret=0 i | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgver | |
+ (( PKGVERFUNC )) | |
+ check_pkgver | |
+ [[ -z 1.7.4 ]] | |
+ validate_pkgver 1.7.4 | |
+ [[ 1.7.4 = *[[:space:]:-]* ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkgrel | |
+ [[ -z 2 ]] | |
+ [[ 2 != +([0-9])?(.+([0-9])) ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_epoch | |
+ [[ '' != *([[:digit:]]) ]] | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_arch | |
+ local a name list | |
+ [[ i686 == \a\n\y ]] | |
+ for a in '"${arch[@]}"' | |
+ [[ i686 = *[![:alnum:]_]* ]] | |
+ for a in '"${arch[@]}"' | |
+ [[ x86_64 = *[![:alnum:]_]* ]] | |
+ (( ! IGNOREARCH )) | |
+ in_array x86_64 i686 x86_64 | |
+ local needle=x86_64 | |
+ shift | |
+ local item | |
+ for item in '"$@"' | |
+ [[ i686 = \x\8\6\_\6\4 ]] | |
+ for item in '"$@"' | |
+ [[ x86_64 = \x\8\6\_\6\4 ]] | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_provides | |
+ local a list name provides_list ret=0 | |
+ provides_list=("${provides[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list provides_i686 | |
+ local dest=list src=provides_i686 i keys values | |
+ declare -p provides_i686 | |
+ return 1 | |
+ provides_list+=("${list[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list provides_x86_64 | |
+ local dest=list src=provides_x86_64 i keys values | |
+ declare -p provides_x86_64 | |
+ return 1 | |
+ provides_list+=("${list[@]}") | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_backup | |
+ local list name backup_list ret=0 | |
+ backup_list=("${backup[@]}") | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_optdepends | |
+ local a list name optdepends_list ret=0 | |
+ optdepends_list=("${optdepends[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list optdepends_i686 | |
+ local dest=list src=optdepends_i686 i keys values | |
+ declare -p optdepends_i686 | |
+ return 1 | |
+ optdepends_list+=("${list[@]}") | |
+ for a in '"${arch[@]}"' | |
+ array_build list optdepends_x86_64 | |
+ local dest=list src=optdepends_x86_64 i keys values | |
+ declare -p optdepends_x86_64 | |
+ return 1 | |
+ optdepends_list+=("${list[@]}") | |
+ for name in '"${optdepends_list[@]}"' | |
+ local pkg=qt5-base | |
+ [[ qt5-base != +([-[:alnum:]><=.+_:]) ]] | |
+ for name in '"${optdepends_list[@]}"' | |
+ local pkg=openssl | |
+ [[ openssl != +([-[:alnum:]><=.+_:]) ]] | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_changelog | |
+ local list name file changelog_list ret=0 | |
+ changelog_list=("${changelog[@]}") | |
+ check_files_exist changelog | |
+ files=("${@:2}") | |
+ local kind=changelog files file ret | |
+ return | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_install | |
+ local list file name install_list ret=0 | |
+ install_list=("${install[@]}") | |
+ check_files_exist install | |
+ files=("${@:2}") | |
+ local kind=install files file ret | |
+ return | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_options | |
+ local ret=0 list name kopt options_list | |
+ options_list=("${options[@]}") | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_packagefn | |
+ local i ret=0 | |
+ (( 0 == 1 )) | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_pkglist | |
+ local i ret=0 | |
+ return 0 | |
+ for lintfn in '"${lint_functions[@]}"' | |
+ lint_source | |
+ idx=("${!source[@]}") | |
+ local idx | |
+ (( 4 > 0 && (idx[-1] + 1) != 4 )) | |
+ return 0 | |
+ check_software | |
+ local ret=0 | |
+ (( ! NODEPS || DEP_BIN || RMDEPS || INSTALL )) | |
+ [[ -z /usr/bin/pacman ]] | |
+ (( DEP_BIN || RMDEPS || INSTALL )) | |
+ type -p sudo | |
+ check_buildenv fakeroot y | |
+ in_opt_array fakeroot fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=fakeroot | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \f\a\k\e\r\o\o\t ]] | |
+ [[ !sign = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \f\a\k\e\r\o\o\t ]] | |
+ [[ check = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \f\a\k\e\r\o\o\t ]] | |
+ [[ !ccache = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=color | |
+ [[ color = \f\a\k\e\r\o\o\t ]] | |
+ [[ color = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!distcc' | |
+ [[ !distcc = \f\a\k\e\r\o\o\t ]] | |
+ [[ !distcc = \!\f\a\k\e\r\o\o\t ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=fakeroot | |
+ [[ fakeroot = \f\a\k\e\r\o\o\t ]] | |
+ return 0 | |
+ case $? in | |
+ [[ y = \y ]] | |
+ return | |
+ (( EUID > 0 )) | |
+ [[ '' == \y ]] | |
+ [[ -z '' ]] | |
+ check_buildenv sign y | |
+ in_opt_array sign fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=sign | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \s\i\g\n ]] | |
+ [[ !sign = \!\s\i\g\n ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ (( ! SKIPPGPCHECK )) | |
+ source_has_signatures | |
+ local file all_sources | |
+ get_all_sources_for_arch all_sources | |
+ local aggregate l | |
+ array_build l source | |
+ local dest=l src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'l=()' | |
++ l=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''l[0]'\'' %s "${source[0]}"; printf -v '\''l[1]'\'' %s "${source[1]}"; printf -v '\''l[2]'\'' %s "${source[2]}"; printf -v '\''l[3]'\'' %s "${source[3]}";' | |
++ printf -v 'l[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'l[1]' %s synergys_at.socket | |
++ printf -v 'l[2]' %s synergys_at.service | |
++ printf -v 'l[3]' %s fix-incompetence.patch | |
+ aggregate+=("${l[@]}") | |
+ array_build l source_x86_64 | |
+ local dest=l src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ array_build all_sources aggregate | |
+ local dest=all_sources src=aggregate i keys values | |
+ declare -p aggregate | |
+ eval 'keys=("${!aggregate[@]}")' | |
++ keys=("${!aggregate[@]}") | |
+ eval 'all_sources=()' | |
++ all_sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''all_sources[0]'\'' %s "${aggregate[0]}"; printf -v '\''all_sources[1]'\'' %s "${aggregate[1]}"; printf -v '\''all_sources[2]'\'' %s "${aggregate[2]}"; printf -v '\''all_sources[3]'\'' %s "${aggregate[3]}";' | |
++ printf -v 'all_sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'all_sources[1]' %s synergys_at.socket | |
++ printf -v 'all_sources[2]' %s synergys_at.service | |
++ printf -v 'all_sources[3]' %s fix-incompetence.patch | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergy-1.7.4.tar.gz = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergys_at.socket = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ synergys_at.service = *.@(sig?(n)|asc) ]] | |
+ for file in '"${all_sources[@]}"' | |
+ [[ fix-incompetence.patch = *.@(sig?(n)|asc) ]] | |
+ return 1 | |
+ (( ! SKIPCHECKSUMS )) | |
+ type -p openssl | |
+ check_option upx y | |
+ in_opt_array upx | |
+ local needle=upx | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array upx strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=upx | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \u\p\x ]] | |
+ [[ !debug = \!\u\p\x ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \u\p\x ]] | |
+ [[ !upx = \!\u\p\x ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = n ]] | |
+ return | |
+ check_buildenv distcc y | |
+ in_opt_array distcc fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=distcc | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \d\i\s\t\c\c ]] | |
+ [[ !sign = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \d\i\s\t\c\c ]] | |
+ [[ check = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \d\i\s\t\c\c ]] | |
+ [[ !ccache = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=color | |
+ [[ color = \d\i\s\t\c\c ]] | |
+ [[ color = \!\d\i\s\t\c\c ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!distcc' | |
+ [[ !distcc = \d\i\s\t\c\c ]] | |
+ [[ !distcc = \!\d\i\s\t\c\c ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ check_buildenv ccache y | |
+ in_opt_array ccache fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=ccache | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \c\c\a\c\h\e ]] | |
+ [[ !sign = \!\c\c\a\c\h\e ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=check | |
+ [[ check = \c\c\a\c\h\e ]] | |
+ [[ check = \!\c\c\a\c\h\e ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!ccache' | |
+ [[ !ccache = \c\c\a\c\h\e ]] | |
+ [[ !ccache = \!\c\c\a\c\h\e ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ check_option strip y | |
+ in_opt_array strip | |
+ local needle=strip | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array strip strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=strip | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \s\t\r\i\p ]] | |
+ [[ !debug = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \s\t\r\i\p ]] | |
+ [[ !upx = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \s\t\r\i\p ]] | |
+ [[ purge = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \s\t\r\i\p ]] | |
+ [[ zipman = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=emptydirs | |
+ [[ emptydirs = \s\t\r\i\p ]] | |
+ [[ emptydirs = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!staticlibs' | |
+ [[ !staticlibs = \s\t\r\i\p ]] | |
+ [[ !staticlibs = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!libtool' | |
+ [[ !libtool = \s\t\r\i\p ]] | |
+ [[ !libtool = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=docs | |
+ [[ docs = \s\t\r\i\p ]] | |
+ [[ docs = \!\s\t\r\i\p ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=strip | |
+ [[ strip = \s\t\r\i\p ]] | |
+ return 0 | |
+ case $? in | |
+ [[ y = y ]] | |
+ return | |
+ type -p strip | |
+ check_option zipman y | |
+ in_opt_array zipman | |
+ local needle=zipman | |
+ shift | |
+ local i opt | |
+ (( i = 0 )) | |
+ (( i > 0 )) | |
+ return 127 | |
+ case $? in | |
+ in_opt_array zipman strip docs '!libtool' '!staticlibs' emptydirs zipman purge '!upx' '!debug' | |
+ local needle=zipman | |
+ shift | |
+ local i opt | |
+ (( i = 9 )) | |
+ (( i > 0 )) | |
+ opt='!debug' | |
+ [[ !debug = \z\i\p\m\a\n ]] | |
+ [[ !debug = \!\z\i\p\m\a\n ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt='!upx' | |
+ [[ !upx = \z\i\p\m\a\n ]] | |
+ [[ !upx = \!\z\i\p\m\a\n ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=purge | |
+ [[ purge = \z\i\p\m\a\n ]] | |
+ [[ purge = \!\z\i\p\m\a\n ]] | |
+ (( i-- )) | |
+ (( i > 0 )) | |
+ opt=zipman | |
+ [[ zipman = \z\i\p\m\a\n ]] | |
+ return 0 | |
+ case $? in | |
+ [[ y = y ]] | |
+ return | |
+ type -p gzip | |
+ check_vcs_software | |
+ local all_sources all_deps deps ret=0 | |
+ (( SOURCEONLY == 1 )) | |
+ [[ -z /usr/bin/pacman ]] | |
+ for attr in depends makedepends | |
+ pkgbuild_get_attribute '' depends 1 deps | |
+ local pkgname= attrname=depends isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var depends 1 deps | |
+ local attr=depends isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref depends | |
+ local dest=ref src=depends i keys values | |
+ declare -p depends | |
+ eval 'keys=("${!depends[@]}")' | |
++ keys=("${!depends[@]}") | |
+ eval 'ref=()' | |
++ ref=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''ref[0]'\'' %s "${depends[0]}"; printf -v '\''ref[1]'\'' %s "${depends[1]}"; printf -v '\''ref[2]'\'' %s "${depends[2]}"; printf -v '\''ref[3]'\'' %s "${depends[3]}"; printf -v '\''ref[4]'\'' %s "${depends[4]}"; printf -v '\''ref[5]'\'' %s "${depends[5]}";' | |
++ printf -v 'ref[0]' %s gcc-libs | |
++ printf -v 'ref[1]' %s libxtst | |
++ printf -v 'ref[2]' %s libxinerama | |
++ printf -v 'ref[3]' %s libxkbcommon-x11 | |
++ printf -v 'ref[4]' %s avahi | |
++ printf -v 'ref[5]' %s curl | |
+ [[ -n gcc-libs libxtst libxinerama libxkbcommon-x11 avahi curl ]] | |
+ array_build deps depends | |
+ local dest=deps src=depends i keys values | |
+ declare -p depends | |
+ eval 'keys=("${!depends[@]}")' | |
++ keys=("${!depends[@]}") | |
+ eval 'deps=()' | |
++ deps=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''deps[0]'\'' %s "${depends[0]}"; printf -v '\''deps[1]'\'' %s "${depends[1]}"; printf -v '\''deps[2]'\'' %s "${depends[2]}"; printf -v '\''deps[3]'\'' %s "${depends[3]}"; printf -v '\''deps[4]'\'' %s "${depends[4]}"; printf -v '\''deps[5]'\'' %s "${depends[5]}";' | |
++ printf -v 'deps[0]' %s gcc-libs | |
++ printf -v 'deps[1]' %s libxtst | |
++ printf -v 'deps[2]' %s libxinerama | |
++ printf -v 'deps[3]' %s libxkbcommon-x11 | |
++ printf -v 'deps[4]' %s avahi | |
++ printf -v 'deps[5]' %s curl | |
+ all_deps+=("${deps[@]}") | |
+ pkgbuild_get_attribute '' depends_x86_64 1 deps | |
+ local pkgname= attrname=depends_x86_64 isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var depends_x86_64 1 deps | |
+ local attr=depends_x86_64 isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref depends_x86_64 | |
+ local dest=ref src=depends_x86_64 i keys values | |
+ declare -p depends_x86_64 | |
+ return 1 | |
+ [[ -n '' ]] | |
+ all_deps+=("${deps[@]}") | |
+ for attr in depends makedepends | |
+ pkgbuild_get_attribute '' makedepends 1 deps | |
+ local pkgname= attrname=makedepends isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var makedepends 1 deps | |
+ local attr=makedepends isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref makedepends | |
+ local dest=ref src=makedepends i keys values | |
+ declare -p makedepends | |
+ eval 'keys=("${!makedepends[@]}")' | |
++ keys=("${!makedepends[@]}") | |
+ eval 'ref=()' | |
++ ref=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''ref[0]'\'' %s "${makedepends[0]}"; printf -v '\''ref[1]'\'' %s "${makedepends[1]}"; printf -v '\''ref[2]'\'' %s "${makedepends[2]}"; printf -v '\''ref[3]'\'' %s "${makedepends[3]}";' | |
++ printf -v 'ref[0]' %s libxt | |
++ printf -v 'ref[1]' %s cmake | |
++ printf -v 'ref[2]' %s qt5-base | |
++ printf -v 'ref[3]' %s unzip | |
+ [[ -n libxt cmake qt5-base unzip ]] | |
+ array_build deps makedepends | |
+ local dest=deps src=makedepends i keys values | |
+ declare -p makedepends | |
+ eval 'keys=("${!makedepends[@]}")' | |
++ keys=("${!makedepends[@]}") | |
+ eval 'deps=()' | |
++ deps=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''deps[0]'\'' %s "${makedepends[0]}"; printf -v '\''deps[1]'\'' %s "${makedepends[1]}"; printf -v '\''deps[2]'\'' %s "${makedepends[2]}"; printf -v '\''deps[3]'\'' %s "${makedepends[3]}";' | |
++ printf -v 'deps[0]' %s libxt | |
++ printf -v 'deps[1]' %s cmake | |
++ printf -v 'deps[2]' %s qt5-base | |
++ printf -v 'deps[3]' %s unzip | |
+ all_deps+=("${deps[@]}") | |
+ pkgbuild_get_attribute '' makedepends_x86_64 1 deps | |
+ local pkgname= attrname=makedepends_x86_64 isarray=1 outputvar=deps | |
+ printf -v deps %s '' | |
+ [[ -n '' ]] | |
+ extract_global_var makedepends_x86_64 1 deps | |
+ local attr=makedepends_x86_64 isarray=1 outputvar=deps ref | |
+ (( isarray )) | |
+ array_build ref makedepends_x86_64 | |
+ local dest=ref src=makedepends_x86_64 i keys values | |
+ declare -p makedepends_x86_64 | |
+ return 1 | |
+ [[ -n '' ]] | |
+ all_deps+=("${deps[@]}") | |
+ get_all_sources_for_arch all_sources | |
+ local aggregate l | |
+ array_build l source | |
+ local dest=l src=source i keys values | |
+ declare -p source | |
+ eval 'keys=("${!source[@]}")' | |
++ keys=("${!source[@]}") | |
+ eval 'l=()' | |
++ l=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''l[0]'\'' %s "${source[0]}"; printf -v '\''l[1]'\'' %s "${source[1]}"; printf -v '\''l[2]'\'' %s "${source[2]}"; printf -v '\''l[3]'\'' %s "${source[3]}";' | |
++ printf -v 'l[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'l[1]' %s synergys_at.socket | |
++ printf -v 'l[2]' %s synergys_at.service | |
++ printf -v 'l[3]' %s fix-incompetence.patch | |
+ aggregate+=("${l[@]}") | |
+ array_build l source_x86_64 | |
+ local dest=l src=source_x86_64 i keys values | |
+ declare -p source_x86_64 | |
+ return 1 | |
+ array_build all_sources aggregate | |
+ local dest=all_sources src=aggregate i keys values | |
+ declare -p aggregate | |
+ eval 'keys=("${!aggregate[@]}")' | |
++ keys=("${!aggregate[@]}") | |
+ eval 'all_sources=()' | |
++ all_sources=() | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ for i in '"${keys[@]}"' | |
+ values+=("printf -v '$dest[$i]' %s \"\${$src[$i]}\";") | |
+ eval 'printf -v '\''all_sources[0]'\'' %s "${aggregate[0]}"; printf -v '\''all_sources[1]'\'' %s "${aggregate[1]}"; printf -v '\''all_sources[2]'\'' %s "${aggregate[2]}"; printf -v '\''all_sources[3]'\'' %s "${aggregate[3]}";' | |
++ printf -v 'all_sources[0]' %s synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf -v 'all_sources[1]' %s synergys_at.socket | |
++ printf -v 'all_sources[2]' %s synergys_at.service | |
++ printf -v 'all_sources[3]' %s fix-incompetence.patch | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ [[ synergy-1.7.4.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz = *://* ]] | |
++ local proto=http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz | |
++ printf '%s\n' http | |
+ local proto=http | |
+ case $proto in | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol synergys_at.socket | |
++ [[ synergys_at.socket = *://* ]] | |
++ [[ synergys_at.socket = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case $proto in | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol synergys_at.service | |
++ [[ synergys_at.service = *://* ]] | |
++ [[ synergys_at.service = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case $proto in | |
+ for netfile in '${all_sources[@]}' | |
++ get_protocol fix-incompetence.patch | |
++ [[ fix-incompetence.patch = *://* ]] | |
++ [[ fix-incompetence.patch = *lp:* ]] | |
++ printf '%s\n' local | |
+ local proto=local | |
+ case $proto in | |
+ return 0 | |
+ return 0 | |
+ (( 0 > 1 )) | |
+ have_function prepare | |
+ declare -f prepare | |
+ [[ '' != \n ]] | |
+ PREPAREFUNC=1 | |
+ have_function build | |
+ declare -f build | |
+ BUILDFUNC=1 | |
+ have_function check | |
+ declare -f check | |
+ have_function package | |
+ declare -f package | |
+ PKGFUNC=1 | |
+ [[ -n '' ]] | |
+ [[ -z '' ]] | |
+ check_buildenv sign y | |
+ in_opt_array sign fakeroot '!distcc' color '!ccache' check '!sign' | |
+ local needle=sign | |
+ shift | |
+ local i opt | |
+ (( i = 6 )) | |
+ (( i > 0 )) | |
+ opt='!sign' | |
+ [[ !sign = \s\i\g\n ]] | |
+ [[ !sign = \!\s\i\g\n ]] | |
+ return 1 | |
+ case $? in | |
+ [[ y = \n ]] | |
+ return | |
+ [[ '' == \y ]] | |
+ (( ! PKGVERFUNC )) | |
+ check_build_status | |
+ (( ! SPLITPKG )) | |
++ get_full_version | |
++ (( epoch > 0 )) | |
++ printf '%s\n' 1.7.4-2 | |
+ fullver=1.7.4-2 | |
++ get_pkg_arch | |
++ [[ -z '' ]] | |
++ [[ i686 = \a\n\y ]] | |
++ printf '%s\n' x86_64 | |
+ pkgarch=x86_64 | |
+ [[ -f /home/despairblue/git/synergy/-1.7.4-2-x86_64.pkg.tar ]] | |
+ (( INFAKEROOT )) | |
+ (( SOURCEONLY )) | |
+ chmod 755 /home/despairblue/git/synergy/pkg | |
+ (( ! SPLITPKG )) | |
+ pkgdir=/home/despairblue/git/synergy/pkg/ | |
+ mkdir /home/despairblue/git/synergy/pkg/ | |
mkdir: cannot create directory ‘/home/despairblue/git/synergy/pkg/’: File exists | |
+++ gettext 'An unknown error has occurred. Exiting...' | |
++ trap_exit USR1 'An unknown error has occurred. Exiting...' | |
++ local signal=USR1 | |
++ shift | |
++ (( ! INFAKEROOT )) | |
++ [[ -n '' ]] | |
++ trap -- USR1 | |
++ kill -USR1 9088 | |
++ clean_up | |
++ local EXIT_CODE=1 | |
++ (( INFAKEROOT )) | |
++ return | |
/usr/bin/fakeroot: line 181: 9088 User defined signal 1 FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@" | |
+ exit 138 | |
+ clean_up | |
+ local EXIT_CODE=138 | |
+ (( INFAKEROOT )) | |
+ (( ! EXIT_CODE && CLEANUP )) | |
+ remove_deps | |
+ (( ! RMDEPS )) | |
+ return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -x | |
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> | |
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> | |
# Contributor: Jelle van der Waa <jelle vdwaa nl> | |
# Contributor: Stéphane Gaudreault <stephane@archlinux.org> | |
# Contributor: Dale Blount <dale@archlinux.org> | |
# Contributor: Michael Düll <mail@akurei.me> | |
# I would just like to take a minute here and state that synergy is | |
# some of the worst packaged software ever. They BUNDLE a fucking | |
# zip for cryptopp and do not provide an option to use a system- | |
# installed version of that library. They change around paths every | |
# update and just generally don't seem to care much. | |
# pkgname=synergy | |
pkgver=1.7.4 | |
pkgrel=2 | |
pkgdesc="Share a single mouse and keyboard between multiple computers" | |
url="http://synergy-foss.org" | |
arch=('i686' 'x86_64') | |
depends=('gcc-libs' 'libxtst' 'libxinerama' 'libxkbcommon-x11' 'avahi' 'curl') | |
makedepends=('libxt' 'cmake' 'qt5-base' 'unzip') | |
optdepends=( | |
'qt5-base: gui support' | |
'openssl: encryption support' | |
) | |
license=('GPL2') | |
# source=("synergy-${pkgver}.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-267f3ac-Source.tar.gz" | |
source=("synergy-${pkgver}.tar.gz::http://synergy-project.org/files/nightly/synergy-v1.7.4-stable-ebb7edf-Source.tar.gz" | |
"synergys_at.socket" | |
"synergys_at.service" | |
fix-incompetence.patch) | |
sha1sums=('SKIP' | |
'7ec33221725fc496b807e0f435c5e87b590beb5d' | |
'65ab58cc3546d6374a05a6a260f15045632e43ce' | |
'10a899901ef62828280f21979625495f4da159f5') | |
prepare() { | |
cd "${srcdir}/synergy-${pkgver}-Source" | |
# patch -p1 < ../fix-incompetence.patch | |
cd ext | |
unzip gmock-1.6.0.zip -d gmock-1.6.0 | |
unzip gtest-1.6.0.zip -d gtest-1.6.0 | |
} | |
build() { | |
cd "${srcdir}/synergy-${pkgver}-Source" | |
cmake -DCMAKE_INSTALL_PREFIX=/usr . | |
make | |
cd src/gui | |
qmake | |
make | |
} | |
# check() { | |
# cd "${srcdir}/synergy-${pkgver}-Source/bin" | |
# ./unittests | |
# } | |
package() { | |
cd "${srcdir}/synergy-${pkgver}-Source" | |
# install binary | |
install -Dm755 bin/synergy "${pkgdir}/usr/bin/synergy" | |
install -Dm755 bin/synergyc "${pkgdir}/usr/bin/synergyc" | |
install -Dm755 bin/synergyd "${pkgdir}/usr/bin/synergyd" | |
install -Dm755 bin/synergys "${pkgdir}/usr/bin/synergys" | |
install -Dm755 bin/syntool "${pkgdir}/usr/bin/syntool" | |
install -Dm755 bin/usynergy "${pkgdir}/usr/bin/usynergy" | |
# install config | |
install -Dm644 "doc/${pkgname}.conf.example" "${pkgdir}/etc/${pkgname}.conf.example" | |
install -Dm644 "doc/${pkgname}.conf.example-advanced" "${pkgdir}/etc/${pkgname}.conf.example-advanced" | |
install -Dm644 "doc/${pkgname}.conf.example-basic" "${pkgdir}/etc/${pkgname}.conf.example-basic" | |
# install manfiles | |
install -Dm644 "doc/${pkgname}c.man" "${pkgdir}/usr/share/man/man1/${pkgname}c.1" | |
install -Dm644 "doc/${pkgname}s.man" "${pkgdir}/usr/share/man/man1/${pkgname}s.1" | |
# plugin | |
install -Dm644 bin/plugins/libns.so "${pkgdir}/usr/lib/${pkgname}/libns.so" | |
# install systemd service and socket | |
install -Dm644 "${srcdir}/synergys_at.service" "${pkgdir}/usr/lib/systemd/system/synergys@.service" | |
install -Dm644 "${srcdir}/synergys_at.socket" "${pkgdir}/usr/lib/systemd/system/synergys@.socket" | |
# install desktop/icon stuff | |
install -Dm644 "res/synergy.ico" "${pkgdir}/usr/share/icons/synergy.ico" | |
install -Dm644 "res/synergy.desktop" "${pkgdir}/usr/share/applications/synergy.desktop" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment