void-packages/srcpkgs/libmaa/template

34 lines
860 B
Bash

# Template file for 'libmaa'
pkgname=libmaa
version=1.5.1
revision=1
build_style=gnu-makefile
make_cmd=mkcmake
hostmakedepends="flex libtool mk-configure"
short_desc="Provides many low-level data structures useful for writing compilers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://sourceforge.net/projects/dict/"
distfiles="${SOURCEFORGE_SITE}/dict/libmaa-${version}.tar.gz"
checksum=3a30e25f038e99c4715125545516490d991fe3a505825cc832b1a956e31bf669
do_build() {
mkc_compiler_settings
awk -f maa/arggram2c < maa/arggram.txt > maa/arggram.c
mkcmake ${makejobs} PREFIX=/usr
}
do_check() {
mkcmake test
}
libmaa-devel_package() {
depends="${makedepends} libmaa>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include"
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}