~armagetronad-dev/armagetronad/0.2.8-armagetronad-work

« back to all changes in this revision

Viewing changes to docker/build/context/portable/build

  • Committer: Manuel Moos
  • Date: 2020-08-04 23:41:53 UTC
  • mfrom: (1166.11.2 master)
  • mto: This revision was merged to the branch mainline in revision 1634.
  • Revision ID: manuel@moosnet.de-20200804234153-mski2gfvsqvfrroq
Merge: Add missing libraries to AppImage/AppDir (0.2.9.0 hotfix)

See merge request armagetronad/armagetronad!72

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
function copylib()
23
23
{
24
24
    baselib=$1
25
 
    path=$(dirname ${baselib})
26
 
    baselib=$(basename ${baselib})
27
 
    echo "Found in ${path}."
28
 
    if test "$lastpath" != "$path"; then
29
 
        otherpath=$lastpath
30
 
    fi
31
 
    lastpath=$path
32
25
    while test -n "${baselib}"; do
 
26
      if echo ${baselib} | grep -q \^/; then
 
27
        # absolute path, split
 
28
        path=$(dirname ${baselib})
 
29
        baselib=$(basename ${baselib})
 
30
        echo "Found in ${path}."
 
31
        if test "$lastpath" != "$path"; then
 
32
            otherpath=$lastpath
 
33
        fi
 
34
        lastpath=$path
 
35
      fi
33
36
      # copy libary
34
37
      echo Copying ${baselib}...
35
 
      cp -a "${path}/${baselib}" ${APPDIR}/usr/lib/
 
38
      cp -a "${path}/${baselib}" ${APPDIR}/usr/lib/ || exit $?
36
39
      # resolve links
37
40
      baselib=$(ls -l ${path}/${baselib} | grep -- "->" | sed -e "s,.*-> ,,")
38
41
    done
39
42
}
40
43
 
 
44
# Luckily, This seems to only be an OPTIONAL dependency of libxml. It's huge.
 
45
#libicudata \
 
46
#libtiff \
 
47
 
41
48
#   include libraries
42
49
mkdir -p ${APPDIR}/usr/lib/
43
50
mkdir -p ${APPDIR}/usr/local/lib/
44
51
for library in \
45
 
libxml2 \
46
 
libZThread \
47
 
libSDL-1 \
48
52
libboost_thread \
49
 
libSDL_image libpng \
50
 
libSDL_mixer \
51
 
libGLEW \
 
53
libcaca \
52
54
libfreetype \
53
55
libftgl \
 
56
libGLEW \
 
57
libGLU \
 
58
libicuuc \
 
59
libncursesw \
 
60
libpng \
54
61
libprotobuf \
 
62
libSDL-1 \
 
63
libslang \
 
64
libstdc++ \
 
65
libSDL_image \
 
66
libSDL_mixer \
 
67
libtinfo \
 
68
libwebp \
 
69
libxml2 \
 
70
libZThread \
55
71
; do
56
72
  echo "Checking for library ${library}...."
57
73
  baselib=$(ldd ${APPDIR}/usr/local/bin/${PACKAGE} | grep "${library}" | sed -e "s,.*=> ,," -e "s, (.*,,")