kiss-repo

personal package repository
git clone git://bvnf.space/kiss-repo.git
Log | Files | Refs | README | LICENSE

build (1070B)


      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
#!/bin/sh -e

:> nostrip
#export CC="clang"

# enable building with netbsd-curses
sed 's/tinfow tinfo/tinfow tinfo terminfo/g;/Unable to find xsltproc/d;
    s@xmlcatalog@/bin/true@' \
    auto.def >_
mv _ auto.def

./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --autocrypt \
    --ssl \
    --sasl \
    --gpgme \
    --lmdb \
    --disable-nls \
    --disable-idn2 \
    --enable-lua \
    --zlib \
    --zstd

# Don't actually build the docs (some of the xsltproc html stuff requires
# an internet connection)
sed '/^.*_TARGETS=/s/ .*-docs//;s/xsltproc/:/g' Makefile > _
mv _ Makefile

make EXTRA_CFLAGS="-g -Og"
make docs/neomuttrc docs/neomutt.1 docs/neomuttrc.5
make DESTDIR="$1" install

# Install the man pages and /etc/neomuttrc.
mkdir -p \
    "$1/etc" \
    "$1/usr/share/man/man1" \
    "$1/usr/share/man/man5"

cp -f docs/neomuttrc "$1/etc"
cp -f docs/neomutt.1 \
      docs/pgpewrap.1 \
      docs/smime_keys.1 \
      "$1/usr/share/man/man1/"
cp -f docs/neomuttrc.5 \
      docs/mbox.5 \
      docs/mmdf.5 \
      "$1/usr/share/man/man5/"