void-packages/srcpkgs/ucpp/template
Enno Boland f40cd77686 srcpkgs: remove pullmoll from maintainers field. 😢
Set them to Orphaned for now.

If you'd like to pick up a package, feel free.
2021-04-10 16:34:44 +02:00

27 lines
753 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="Orphaned <orphan@voidlinux.org>"
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
}