1#!/bin/sh -ue
2NAME=chafa
3VERSION=1.18.2
4RELEASE=1
5SOURCE="https://github.com/hpjansson/${NAME}/releases/download/${VERSION}/${NAME}-${VERSION}.tar.xz"
6BUILD_OPT="--disable-Bsymbolic --enable-static --disable-shared --disable-man --without-gnu-ld --disable-gtk-doc"
7build(){
8 CFLAGS="-static" LDFLAGS="-static" ./configure $BUILD_OPT
9
10 gmake LDFLAGS='-lcharset -static -all-static' CFLAGS='-static'
11 gmake LDFLAGS='-lcharset' CFLAGS='-static' DESTDIR="$PKG" install
12}
13
14. ${0%/*}/../../libsh/libdmake.sh