27 lines
764 B
Bash
27 lines
764 B
Bash
# Template file for 'ucpp'
|
|
pkgname=ucpp
|
|
version=1.3.2
|
|
revision=1
|
|
wrksrc=${pkgname}
|
|
build_style=gnu-makefile
|
|
nopie=yes
|
|
short_desc="Embeddable, quck, light C preprocessor compliant to C99"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="BSD"
|
|
homepage="https://code.google.com/archive/p/ucpp/"
|
|
distfiles="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ucpp/ucpp-${version}.tar.bz2"
|
|
checksum=ab7ecc5ba2c2617fa14cd0a939c1e87ed789c59767fb39fc9b7d0ebf63a81635
|
|
|
|
pre_build() {
|
|
sed -i Makefile \
|
|
-e "s;^CC = .*;CC = ${CC};" \
|
|
-e "s;^FLAGS = .*;FLAGS = ${CFLAGS};" \
|
|
-e "s;^#LDFLAGS = -pg;LDFLAGS = ${LDFLAGS};"
|
|
}
|
|
|
|
do_install() {
|
|
vbin ucpp
|
|
vman ucpp.1
|
|
head -n 27 Makefile | tail -n 25 > LICENSE
|
|
vlicense LICENSE
|
|
}
|