void-packages/srcpkgs/kona/template
2019-02-24 18:43:30 -03:00

26 lines
688 B
Bash

# Template file for 'kona'
pkgname=kona
version=3.39.69
revision=1
_distver="${version%.*}-${version##*.}"
wrksrc="${pkgname}-Win.${_distver}"
short_desc="Open-source implementation of the K programming language"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/kevinlawler/kona"
distfiles="https://github.com/kevinlawler/kona/archive/Win.${_distver}.tar.gz"
checksum=846b586c89bb18048028a0d623c6322148e366b132ea73b288ea34ef1833d0ed
post_extract() {
sed -i '/netdb.h/a#include <sys/select.h>' src/incs.h
}
do_build() {
make ${makejobs} k \
CC="$CC" PRODFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -lm -ldl"
}
do_install() {
vbin k
vlicense LICENSE
}