kiss-nihal

personal KISS Linux package repo
git clone git://git.nihaljere.xyz/kiss-nihal
Log | Files | Refs | Submodules

build (669B)


      1 #!/bin/sh -e
      2 
      3 # shellcheck disable=SC2016
      4 sed -i 's/$(MAKE) -C gitweb install//' Makefile
      5 
      6 export CFLAGS="$CFLAGS -static"
      7 
      8 cat > config.mak <<EOF
      9 NO_GETTEXT=YesPlease
     10 NO_SVN_TESTS=YesPlease
     11 NO_TCLTK=YesPlease
     12 NO_EXPAT=YesPlease
     13 NO_NSEC=YesPlease
     14 NO_PYTHON=YesPlease
     15 NO_SVN_TESTS=YesPlease
     16 NO_SYS_POLL_H=1
     17 NO_CROSS_DIRECTORY_HARDLINKS=1
     18 NO_INSTALL_HARDLINKS=1
     19 EOF
     20 
     21 ./configure \
     22     --prefix=/usr \
     23     --libexecdir=/usr/lib \
     24     ac_cv_lib_curl_curl_global_init=yes \
     25     ac_cv_snprintf_returns_bogus=no \
     26     ac_cv_fread_reads_directories=yes
     27 
     28 make LIBS="$(curl-config --static-libs) libgit.a xdiff/lib.a -lz"
     29 make DESTDIR="$1" install
     30 
     31 cp -rf man "$1/usr/share/man"