void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.6k stars 2.16k forks source link

Package Request: Context Free Art #22044

Open notramo opened 4 years ago

notramo commented 4 years ago

https://github.com/MtnViewJohn/context-free

TeddyDD commented 3 years ago

I have personal cfdg package. I suck at C/CPP, so I don't feel like maintain it officially. Tested only on x86_64 glibc

# Template file for 'cfdg'
pkgname=cfdg
version=3.3
revision=1
wrksrc=context-free-Version${version}
build_style=gnu-makefile
make_install_args="PREFIX=/usr DESTDIR=${DESTDIR}"
hostmakedepends="flex bison"
makedepends="icu-devel libpng-devel libatomic-devel"
short_desc="Context Free is a program that generates images from grammar"
maintainer="Daniel Lewan <vision360.daniel@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/MtnViewJohn/context-free"
distfiles="https://github.com/MtnViewJohn/context-free/archive/Version${version}.tar.gz"
checksum=c34a7e49850420751c74a2d02ef921cb0beb6a9f7d895633a0ebc0ed5b241033

do_build() {
    make -j $(nproc)
}

post_install() {
        rm -rf ${DESTDIR}/usr/local
        vbin ${wrksrc}/cfdg
        vman ${wrksrc}/cfdg.1
}