New package: ucpp-1.3.2

This commit is contained in:
Jürgen Buchmüller 2016-02-29 15:58:00 +01:00
parent d4f6351386
commit 3dc9a9c390

27
srcpkgs/ucpp/template Normal file
View file

@ -0,0 +1,27 @@
# 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
}