123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #!/bin/bash
- export ARCH=$(arch)
- APP=SuperTux
- LOWERAPP=supertux2
- GIT_REV=$(git rev-parse --short HEAD)
- echo $GIT_REV
- RELEASE_VERSION=$(git describe --tags)
- make install DESTDIR=$HOME/$APP/$APP.AppDir
- cd $HOME/$APP/
- wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
- sed -i -r 's/set -x//' functions.sh
- sed -i 's/wget/wget -q/' functions.sh
- . ./functions.sh
- cd $APP.AppDir
- get_apprun
- get_desktop
- cp ./usr/share/icons/hicolor/scalable/apps/$LOWERAPP.svg . || true
- ls -lh $LOWERAPP.svg || true
- copy_deps
- if [ -d "./usr/lib/x86_64-linux-gnu/gstreamer-1.0/" ] ; then
- mv -v ./usr/lib/x86_64-linux-gnu/gstreamer-1.0/* ./usr/lib/x86_64-linux-gnu/
- rm -vr ./usr/lib/x86_64-linux-gnu/gstreamer-1.0
- fi
- if [ -d "./usr/lib/x86_64-linux-gnu/pulseaudio/" ] ; then
- mv -v ./usr/lib/x86_64-linux-gnu/pulseaudio/* ./usr/lib/x86_64-linux-gnu/
- rm -vr ./usr/lib/x86_64-linux-gnu/pulseaudio
- fi
- delete_blacklisted_patched()
- {
- BLACKLISTED_FILES=$( cat_file_from_url https://github.com/probonopd/AppImages/raw/master/excludelist | sed '/^\s*$/d' | sed '/^#.*$/d' | sed '/libkrb5.so.26/d' | sed '/libkrb5.so.3/d' | sed '/libhcrypto.so.4/d' | sed '/libhx509.so.5/d' | sed '/libroken.so.18/d' | sed '/libwind.so.0/d')
- echo $BLACKLISTED_FILES
- for FILE in $BLACKLISTED_FILES ; do
- FOUND=$(find . -xtype f -name "${FILE}" 2>/dev/null)
- if [ ! -z "$FOUND" ] ; then
- echo "Deleting blacklisted ${FOUND}"
- rm -f "${FOUND}"
- fi
- done
-
- rm -rf usr/include || true
- rm -rf usr/lib/cmake || true
- rm -rf usr/lib/pkgconfig || true
- find . -name '*.la' | xargs -i rm {}
- }
- delete_blacklisted_patched
- get_desktopintegration $LOWERAPP
- VERSION=${RELEASE_VERSION}
- export VERSION
- patch_usr
- cd ..
- mkdir -p ../out/
- generate_type2_appimage
|