summaryrefslogblamecommitdiff
path: root/build.sh
blob: e20d2d24585756fd31a54413c05375452c82bee5 (plain) (tree)













































                                                                                 
#!/bin/bash

# Install dependencies
sudo apt-get -y build-dep manaplus

# clone repo

mkdir manaplus

cd manaplus

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

tar xvJf manaplus-master.tar.xz

ls

cd manaplus-master
autoreconf -i

# 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 -j10
cd ..
make -j10
mkdir run
make install


# package

~/linuxdeploy-x86_64.AppImage --appdir appDir \
-d ./run/share/applications/manaplus.desktop \
-i ./data/icons/manaplus.svg \
-e ./run/bin/manaplus \
--output appimage