master hovercats/oakiss / repo / unifdef / build
 1#!/bin/sh -e
 2
 3patch -p1 < 0001-Don-t-use-C23-constexpr-keyword.patch
 4
 5make LDFLAGS="$LDFLAGS -static"
 6make DESTDIR="$1" prefix=/usr install
 7
 8# Compress manpages
 9find "$1/usr/share/man" -type f -exec gzip -n -9 {} +
10
11# Remove broken symlinks
12rm -rf "$1/usr/share/man/man1/unifdefall.1"