void-packages/srcpkgs/kona/template
Jürgen Buchmüller cd1297df94 kona: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:35 +02:00

28 lines
707 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
CFLAGS="-fcommon"
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
}