/
build-appimage-centos7.sh
executable file
·37 lines (32 loc) · 1.9 KB
/
build-appimage-centos7.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /bin/bash
export PKG_CONFIG_PATH=/zyx/lib64/pkgconfig:/zyx/lib/pkgconfig:/zyx/share/pkgconfig:$PKG_CONFIG_PATH
export ACLOCAL_PATH=/zyx/share/aclocal:$ACLOCAL_PATH
export LD_LIBRARY_PATH=/zyx/lib64:/zyx/lib:$LD_LIBRARY_PATH
#(yum update -y && yum install -y epel-release && yum update -y && yum install -y libtool-ltdl-devel autoconf automake libtools which json-c-devel json-glib-devel gtk-doc gperf libuuid-devel libcroco-devel) || exit 1
(yum update -y && yum install -y suitesparse-devel) || exit 1
if [ ! -e /work/babl ]; then
if [ x"$BABL_GIT_TAG" = "x" ]; then
(cd /work && rm -rf babl && git clone -b master https://gitlab.gnome.org/GNOME/babl.git) || exit 1
else
(cd /work && rm -rf babl && git clone -b "$BABL_GIT_TAG" https://gitlab.gnome.org/GNOME/babl.git) || exit 1
fi
(cd /work/babl && ./autogen.sh --prefix=/zyx && make -j 2 install) || exit 1
fi
if [ ! -e /work/gegl ]; then
if [ x"$GEGL_GIT_TAG" = "x" ]; then
(cd /work && rm -rf gegl && git clone -b master https://gitlab.gnome.org/GNOME/gegl.git) || exit 1
else
(cd /work && rm -rf gegl && git clone -b "$GEGL_GIT_TAG" https://gitlab.gnome.org/GNOME/gegl.git) || exit 1
fi
(cd /work/gegl && ./autogen.sh --prefix=/zyx --without-libavformat --enable-docs=no --enable-gtk-doc=no --enable-gtk-doc-html=no --enable-gtk-doc-pdf=no && make -j 2 install) || exit 1
fi
if [ ! -e /work/gimp ]; then
if [ x"$GIMP_GIT_TAG" = "x" ]; then
(cd /work && rm -rf gimp && git clone -b gimp-2-10 https://gitlab.gnome.org/GNOME/gimp.git) || exit 1
#(cd /work && rm -rf gimp && git clone -b master https://gitlab.gnome.org/GNOME/gimp.git) || exit 1
else
(cd /work && rm -rf gimp && git clone -b "$GIMP_GIT_TAG" https://gitlab.gnome.org/GNOME/gimp.git) || exit 1
fi
(cd /work/gimp && patch -N -p0 < /sources/gimp-glib-splash.patch)
(cd /work/gimp && ./autogen.sh --prefix=/zyx --without-gnomevfs --with-gimpdir=GIMP-AppImage --enable-binreloc && make -j 2 install) || exit 1
fi