summaryrefslogtreecommitdiff
path: root/build_appimg_mana.sh
blob: 4d07245273725f762b1dafa2bcc2e7668c3e571f (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
set -e

# clone repo

mkdir manaplus

cd manaplus

git clone https://git.themanaworld.org/mana/mana.git mana

cd mana

# compile

dir=`pwd`

#autoreconf -i

#CPPFLAGS="-DTCP_THIN_LINEAR_TIMEOUTS -DTCP_THIN_DUPACK" ./configure --prefix=$dir/run \
#--datadir=$dir/run/share/games \
#--bindir=$dir/run/bin \
#--mandir=$dir/run/share/man \
#--enable-portable=yes

#cd po
#make update-gmo -j4
#cd ..
cmake -D CMAKE_INSTALL_PREFIX=$dir/run .
make -j4
mkdir run
make install

# package
mkdir AppDir

cp -r $dir/run/share/mana/data AppDir/data
cp ../../AppRun AppDir/AppRun
sed -i 's/manaplus/mana/g' AppDir/AppRun
sed -i 's/manaverse/mana/g' AppDir/AppRun

../../squashfs-root/AppRun --appdir AppDir \
-d ./run/share/applications/org.manasource.Mana.desktop \
-i ./run/share/icons/hicolor/scalable/apps/org.manasource.Mana.svg \
-e ./run/bin/mana \
--output appimage

mv *.AppImage ../../