kiss-repo

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

build (325B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
#!/bin/sh -e

# Link to libbsd; Makefile doesn't respect LDFLAGS
# shellcheck disable=SC2016
sed 's/\(\$(CC) -g -o \$@ \$(OBJS)\)/\1 -lbsd/' Makefile > _
mv -f _ Makefile

make CFLAGS="-isystem /usr/include/bsd -DLIBBSD_OVERLAY"
make PREFIX=/usr DESTDIR="$1" install

mkdir "$1/usr/share/"
mv "$1/usr/man" "$1/usr/share/man"