summaryrefslogtreecommitdiff
path: root/build.sh
blob: 8b9b2d03408f1f02b1ba93f9a7fc74a1101457d9 (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
50
51
#!/bin/bash
set -e

# clone repo

mkdir manaplus

cd manaplus

wget https://gitlab.com/manaplus/manaplus/-/archive/master/manaplus-master.tar.gz

tar -xvzf manaplus-master.tar.gz

ls

cd manaplus-master

# compile

dir=`pwd`

autoreconf -i

./configure --prefix=$dir/run \
--enable-commandlinepassword \
--datadir=$dir/run/share/games \
--bindir=$dir/run/bin \
--mandir=$dir/run/share/man \
--enable-portable=yes

cd po
make update-gmo -j4
cd ..
make -j4
mkdir run
make install

# package
mkdir AppDir

cp -r $dir/run/share/games/manaplus/data AppDir/data
cp ../../AppRun AppDir/AppRun

../../squashfs-root/AppRun --appdir AppDir \
-d ../../manaplus.desktop \
-i ./data/icons/manaplus.svg \
-e ./run/bin/manaplus \
--output appimage

mv *.AppImage ../../