123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #!/bin/ksh
- doas pkg_add automake-1.16.5 autoconf-2.71 gcc-11.2.0p9 gmake
- application=frogcomposband
- repository=https://github.com/sulkasormi/frogcomposband.git
- export compile=
- mkdir -p ~/src
- cd ~/src || return
- if [ ! -d $application ]; then
- git clone $repository
- cd $application || return
- export compile=true
- else
- cd $application || return
- #git pull
- pwd
- git fetch
- LOCAL=$(git rev-parse HEAD)
- REMOTE=$(git rev-parse @{u})
- if [ ! $LOCAL = $REMOTE ]; then
- pwd
- echo "Need to pull"
- git pull
- export compile=true
- fi
- fi
- if [ "$compile" = "true" ]; then
- cd ~/src/$application || return
- echo ""
- echo "NOTE: If getting a 'Provide an AUTOMAKE_VERSION environment variable, please' error do this:"
- echo "$ export AUTOMAKE_VERSION=1.16 # <- (version without minor number 1.16.5 > 1.16)"
- echo "$ export AUTOCONF_VERSION=2.71 # <- (version without minor number 2.71p3 > 2.71)"
- echo ""
- export AUTOMAKE_VERSION=1.16
- export AUTOCONF_VERSION=2.71
- sh autogen.sh
- chmod +x configure
- ./configure --prefix "$HOME"/.frogcomposband --with-ncurses-prefix=/usr --without-x --with-no-install CFLAGS="-DSGI -DULTRIX" LIBS=-lncurses
- sed -ie 's/timeb.h/time.h/g' src/h-system.h
- gmake clean
- gmake
- fi
|