kiss-repository

personal kiss repository
git clone git://git.ckyln.com/~cem/kiss-repository.git
Log | Files | Refs | Submodules | README | LICENSE

build (711B)


      1 #!/bin/sh -e
      2 
      3 mkdir temp
      4 TMPDIR="$PWD/temp"
      5 
      6 (
      7 cd db/build_unix
      8 
      9 ../dist/configure \
     10     --prefix=/usr \
     11     --disable-shared
     12 
     13 make
     14 make DESTDIR="$TMPDIR" install
     15 
     16 )
     17 
     18 (
     19 cd nvi
     20 
     21 for patch in ../nvi*.patch; do
     22     printf 'Applying %s\n' "$patch"
     23     patch -Np1 < "$patch"
     24 done
     25 
     26 export CFLAGS="$CFLAGS -I$TMPDIR/usr/include"
     27 export LDFLAGS="$LDFLAGS -L$TMPDIR/usr/lib -static"
     28 export OPTFLAG="$CFLAGS"
     29 export CC="${CC:-cc} --static"
     30 
     31 cd dist
     32 
     33 ./configure \
     34     --prefix=/usr \
     35     --enable-widechar \
     36     --disable-shared \
     37     vi_cv_path_preserve=/var/tmp \
     38     vi_cv_sprintf_count=yes
     39 
     40 sed -i -e '/define.*_PATH_MSGCAT/ s/".*"/"\/usr\/share\/vi\/catalog\/"/' pathnames.h
     41 make
     42 install -Dm755 vi "$1/usr/bin/vi"
     43 )