diff --git a/docker-builder-data/build/script/include/inc-pkdownload-git.sh b/docker-builder-data/build/script/include/inc-pkdownload-git.sh index a2e36be..7da6114 100644 --- a/docker-builder-data/build/script/include/inc-pkdownload-git.sh +++ b/docker-builder-data/build/script/include/inc-pkdownload-git.sh @@ -8,7 +8,12 @@ pkdownload() { cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" || return 1 git fetch || return 1 git reset --hard origin/$(git rev-parse --abbrev-ref HEAD) || return 1 + git submodule init || true + git submodule update || true else git clone "$PK_URL" $PK_GIT_OPTIONS || return 1 + cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" || return 1 + git submodule init || true + git submodule update || true fi } diff --git a/docker-builder-data/build/script/packet/adwaitaicontheme-3.22.0.sh b/docker-builder-data/build/script/packet/adwaitaicontheme-3.22.0.sh index b27f794..0584abf 100644 --- a/docker-builder-data/build/script/packet/adwaitaicontheme-3.22.0.sh +++ b/docker-builder-data/build/script/packet/adwaitaicontheme-3.22.0.sh @@ -1,4 +1,4 @@ -DEPS="" +DEPS="rsvg-2.40.16 gtk-3.22.2" PK_DIRNAME="adwaita-icon-theme-3.22.0" PK_ARCHIVE="$PK_DIRNAME.tar.xz" diff --git a/docker-builder-data/build/script/packet/doxygen-1.8.8.sh b/docker-builder-data/build/script/packet/doxygen-1.8.8.sh new file mode 100644 index 0000000..1500c69 --- /dev/null +++ b/docker-builder-data/build/script/packet/doxygen-1.8.8.sh @@ -0,0 +1,9 @@ +DEPS="graphviz-2.40.1" + +PK_DIRNAME="doxygen-1.8.8" +PK_ARCHIVE="$PK_DIRNAME.src.tar.gz" +PK_URL="http://ftp.stack.nl/pub/users/dimitri/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--prefix $INSTALL_PACKET_DIR" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gnomethemesstandard-3.22.2.sh b/docker-builder-data/build/script/packet/gnomethemesstandard-3.22.2.sh index d5112b4..6730680 100644 --- a/docker-builder-data/build/script/packet/gnomethemesstandard-3.22.2.sh +++ b/docker-builder-data/build/script/packet/gnomethemesstandard-3.22.2.sh @@ -1,4 +1,4 @@ -DEPS="rsvg-2.40.16 gtk-3.14.14" +DEPS="rsvg-2.40.16 gtk-3.22.2" PK_DIRNAME="gnome-themes-standard-3.22.2" PK_ARCHIVE="$PK_DIRNAME.tar.xz" diff --git a/docker-builder-data/build/script/packet/graphviz-2.40.1.sh b/docker-builder-data/build/script/packet/graphviz-2.40.1.sh new file mode 100644 index 0000000..6f19798 --- /dev/null +++ b/docker-builder-data/build/script/packet/graphviz-2.40.1.sh @@ -0,0 +1,8 @@ +# TODO: find deps +DEPS="epoxy-master rsvg-2.40.16 atk-2.22.0 atspi2atk-2.22.0 gdkpixbuf-2.36.0 cairo-1.14.6 pango-1.40.3" + +PK_DIRNAME="graphviz-2.40.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://www.graphviz.org/pub/graphviz/stable/SOURCES/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gstreamer-0.10.36.sh b/docker-builder-data/build/script/packet/gstreamer-0.10.36.sh new file mode 100644 index 0000000..dd3ef39 --- /dev/null +++ b/docker-builder-data/build/script/packet/gstreamer-0.10.36.sh @@ -0,0 +1,7 @@ +DEPS="glib-2.50.0" + +PK_DIRNAME="gstreamer-0.10.36" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://gstreamer.freedesktop.org/src/gstreamer/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh b/docker-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh new file mode 100644 index 0000000..6ae8b37 --- /dev/null +++ b/docker-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh @@ -0,0 +1,7 @@ +DEPS="gstreamer-0.10.36" + +PK_DIRNAME="gst-plugins-base-0.10.36" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://gstreamer.freedesktop.org/src/gst-plugins-base/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.files/launch.sh b/docker-builder-data/build/script/packet/papagayong-appimage.files/launch.sh new file mode 100755 index 0000000..4b27f45 --- /dev/null +++ b/docker-builder-data/build/script/packet/papagayong-appimage.files/launch.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` + +export LD_LIBRARY_PATH="${BASE_DIR}/lib:${BASE_DIR}/lib64:$LD_LIBRARY_PATH" +export XDG_DATA_DIRS="${BASE_DIR}/share:$XDG_DATA_DIRS:/usr/local/share/:/usr/share/" +export GSETTINGS_SCHEMA_DIR="${BASE_DIR}/share/glib-2.0/schemas/" +export PYTHONHOME=$BASE_DIR + +#sed "s?@ROOTDIR@/modules?${BASE_DIR}/lib/pango/1.6.0/modules?" < $ETC_DIR/pango/pango.modules.in > $USER_CONFIG_DIR/pango/pango.modules +if [ -e ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in ]; then + export GDK_PIXBUF_MODULE_FILE="${USER_CONFIG_DIR}/gdk-pixbuf.loaders" + sed "s?@ROOTDIR@/loaders?${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders?" < ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in > $GDK_PIXBUF_MODULE_FILE +fi + +export APPIMAGE_ROOT="$BASE_DIR" +if [ ! -z "$APPIMAGE_WORKDIR" ]; then + if ! cd "$APPIMAGE_WORKDIR"; then + echo "Cannot change directory to \"$APPIMAGE_WORKDIR\" (APPIMAGE_WORKDIR)" + exit 1 + fi +fi + +if [ "$1" = "--appimage-exec" ]; then + if ! "${@:2}"; then + exit 1 + fi +elif [ -z "$2" ]; then + if ! "$BASE_DIR/bin/papagayong.wrapper" "$@"; then + exit 1 + fi +elif [ "$1" -eq "--remove-appimage-desktop-integration" ]; then + if ! "$BASE_DIR/bin/papagayong.wrapper" "$@"; then + exit 1 + fi +else + if ! "$BASE_DIR/bin/papagayong" "$@"; then + exit 1 + fi +fi diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong b/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong new file mode 100755 index 0000000..baf04f1 --- /dev/null +++ b/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong @@ -0,0 +1,5 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +cd "$SCRIPT_DIR/../opt/papagayong" +"$SCRIPT_DIR/python3" papagayo-ng.py "$@" diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop b/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop new file mode 100644 index 0000000..c8abf64 --- /dev/null +++ b/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Papagayo NG +Comment=Lipsync tool +Exec=launch.sh +Icon=papagayong.png +Terminal=false +Type=Application +Categories=Graphics;Application; +MimeType=application/x-papagayo;application/x-extension-pgo; +X-Desktop-File-Install-Version=0.15 diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.sh b/docker-builder-data/build/script/packet/papagayong-appimage.sh new file mode 100644 index 0000000..853a75e --- /dev/null +++ b/docker-builder-data/build/script/packet/papagayong-appimage.sh @@ -0,0 +1,50 @@ +DEPS="appimagekit-master papagayong-master" + +PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ +PK_APPDIR_NAME="papagayong" + +pkinstall() { + # copy files from envdeps (install requires envdeps explicit) + + local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + mkdir -p "$APPDIR/usr" + mkdir -p "$APPDIR/usr/bin" + mkdir -p "$APPDIR/usr/lib" + + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/papagayong.wrapper"|| return 1 + + cp --remove-destination "$FILES_PACKET_DIR/papagayong.desktop" "$APPDIR/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/papagayong" "$APPDIR/usr/bin/" || return 1 + + copy_system_lib libudev "$APPDIR/usr/lib/" || return 1 + copy_system_lib libgfortran "$APPDIR/usr/lib/" || return 1 + copy_system_lib libpng12 "$APPDIR/usr/lib/" || return 1 + copy_system_lib libffi "$APPDIR/usr/lib/" || return 1 + copy_system_lib libdb "$APPDIR/usr/lib/" || return 1 + copy_system_lib libpcre "$APPDIR/usr/lib/" || return 1 + copy_system_lib libdirect "$APPDIR/usr/lib/" || return 1 + copy_system_lib libfusion "$APPDIR/usr/lib/" || return 1 + copy_system_lib libbz2 "$APPDIR/usr/lib/" || return 1 +} + +pkinstall_release() { + if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then + return 1 + fi + + # copy files from envdeps_release (install_release requires envdeps_release explicit) + + local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 + cp "$APPDIR/usr/share/icons/default/128x128/apps/papagayong.png" "$APPDIR/" || return 1 + + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -f "$PK_APPDIR_NAME.tar.gz" || return 1 + tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1 + rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + + rm -rf "$APPDIR" +} diff --git a/docker-builder-data/build/script/packet/papagayong-master.files/papagayo.xml b/docker-builder-data/build/script/packet/papagayong-master.files/papagayo.xml new file mode 100644 index 0000000..94ece23 --- /dev/null +++ b/docker-builder-data/build/script/packet/papagayong-master.files/papagayo.xml @@ -0,0 +1,7 @@ + + + + Papagayo Project + + + \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/papagayong-master.sh b/docker-builder-data/build/script/packet/papagayong-master.sh index 1db0ea6..8be1674 100644 --- a/docker-builder-data/build/script/packet/papagayong-master.sh +++ b/docker-builder-data/build/script/packet/papagayong-master.sh @@ -1,4 +1,4 @@ -DEPS="" +DEPS="wxphoenix-master python3pyaudio-master" PK_DIRNAME="papagayo-ng" PK_URL="https://github.com/morevnaproject/$PK_DIRNAME.git" @@ -8,11 +8,20 @@ source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh pkbuild() { - # TODO return 0 } pkinstall() { - # TODO + mkdir -p "$INSTALL_PACKET_DIR/opt" + local TARGET="$INSTALL_PACKET_DIR/opt/papagayong" + rm -rf "$TARGET" + cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME" "$TARGET" || return 1 + + mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps" + mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes" + mkdir -p "$INSTALL_PACKET_DIR/share/mime" + cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps/papagayong.png" || return 1 + #cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes/application-x-papagayo.png" || return 1 + cp "$FILES_PACKET_DIR/papagayo.xml" "$INSTALL_PACKET_DIR/share/mime/" || return 1 return 0 } diff --git a/docker-builder-data/build/script/packet/portaudio-19.6.0.sh b/docker-builder-data/build/script/packet/portaudio-19.6.0.sh new file mode 100644 index 0000000..0feb2fa --- /dev/null +++ b/docker-builder-data/build/script/packet/portaudio-19.6.0.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="portaudio" +PK_ARCHIVE="pa_stable_v19_20140130.tgz" +PK_URL="http://www.portaudio.com/archives/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/python-3.6.0.sh b/docker-builder-data/build/script/packet/python-3.6.0.sh new file mode 100644 index 0000000..a524226 --- /dev/null +++ b/docker-builder-data/build/script/packet/python-3.6.0.sh @@ -0,0 +1,16 @@ +DEPS="" + +PK_DIRNAME="Python-3.6.0" +PK_ARCHIVE="$PK_DIRNAME.tgz" +PK_URL="https://www.python.org/ftp/python/3.6.0/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkbuild-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + make install || return 1 + cd "$INSTALL_PACKET_DIR/bin" || return 1 + ln -s python3 python || return 1 +} \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/python3pyaudio-master.sh b/docker-builder-data/build/script/packet/python3pyaudio-master.sh new file mode 100644 index 0000000..3445e1b --- /dev/null +++ b/docker-builder-data/build/script/packet/python3pyaudio-master.sh @@ -0,0 +1,19 @@ +DEPS="python-3.6.0 portaudio-19.6.0" + +PK_DIRNAME="pyaudio" +PK_URL="https://people.csail.mit.edu/hubert/git/$PK_DIRNAME.git" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + mkdir -p $INSTALL_PACKET_DIR/lib/python3.6/site-packages + PYTHONHOME=$ENVDEPS_PACKET_DIR \ + PYTHONPATH=$INSTALL_PACKET_DIR/lib/python3.6/site-packages:$PYTHONPATH \ + python3 \ + setup.py \ + install \ + --prefix=$INSTALL_PACKET_DIR \ + || return 1 +} diff --git a/docker-builder-data/build/script/packet/python3requests-master.sh b/docker-builder-data/build/script/packet/python3requests-master.sh new file mode 100644 index 0000000..244bb0c --- /dev/null +++ b/docker-builder-data/build/script/packet/python3requests-master.sh @@ -0,0 +1,19 @@ +DEPS="python-3.6.0" + +PK_DIRNAME="requests" +PK_URL="https://github.com/kennethreitz/$PK_DIRNAME.git" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + mkdir -p $INSTALL_PACKET_DIR/lib/python3.6/site-packages + PYTHONHOME=$ENVDEPS_PACKET_DIR \ + PYTHONPATH=$INSTALL_PACKET_DIR/lib/python3.6/site-packages:$PYTHONPATH \ + python3 \ + setup.py \ + install \ + --prefix=$INSTALL_PACKET_DIR \ + || return 1 +} diff --git a/docker-builder-data/build/script/packet/tiff-4.0.6.sh b/docker-builder-data/build/script/packet/tiff-4.0.6.sh index f28633a..f2c2a5d 100644 --- a/docker-builder-data/build/script/packet/tiff-4.0.6.sh +++ b/docker-builder-data/build/script/packet/tiff-4.0.6.sh @@ -1,4 +1,4 @@ -DEPS="" +DEPS="jpeg-9b" PK_DIRNAME="tiff-4.0.6" PK_ARCHIVE="$PK_DIRNAME.tar.gz" diff --git a/docker-builder-data/build/script/packet/wxphoenix-master.sh b/docker-builder-data/build/script/packet/wxphoenix-master.sh new file mode 100644 index 0000000..181e2e6 --- /dev/null +++ b/docker-builder-data/build/script/packet/wxphoenix-master.sh @@ -0,0 +1,39 @@ +# NB: version of doxygen should be EQUAL to 1.8.8 - not newer, not older + +DEPS="python-3.6.0 doxygen-1.8.8 python3requests-master gstreamerpluginsbase-0.10.36 gtk-3.14.14 adwaitaicontheme-3.15.1 gnomethemesstandard-3.15.2" + +PK_DIRNAME="Phoenix" +PK_URL="https://github.com/wxWidgets/$PK_DIRNAME.git" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + if [ ! -f wscript.orig ]; then + cp wscript wscript.orig + grep -v _html2.py wscript.orig > wscript + fi + PYTHONHOME=$ENVDEPS_PACKET_DIR \ + DOXYGEN=$ENVDEPS_PACKET_DIR/bin/doxygen \ + python3 build.py 3.6 \ + --gtk3 \ + --release_build \ + -j8 \ + --extra_setup=--prefix=$INSTALL_PACKET_DIR \ + dox etg sip build \ + || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + rm -rf $INSTALL_PACKET_DIR + mkdir -p $INSTALL_PACKET_DIR + PYTHONHOME=$ENVDEPS_PACKET_DIR python3 build.py 3.6 \ + --gtk3 \ + --release_build \ + -j8 \ + --extra_setup=--prefix=$INSTALL_PACKET_DIR \ + install \ + || return 1 +}