void-packages/srcpkgs/ponyc/template

35 lines
1.2 KiB
Bash

# Template file for 'ponyc'
pkgname=ponyc
version=0.30.0
revision=1
archs="x86_64"
build_style=gnu-makefile
hostmakedepends="llvm7"
makedepends="zlib-devel ncurses-devel libatomic-devel"
depends="libatomic-devel"
short_desc="OO, actor-model, capabilities-secure, high-performance language"
maintainer="Brian Mitchell <brian@strmpnk.co>"
license="BSD-2-Clause"
homepage="https://ponylang.org/"
distfiles="https://github.com/ponylang/ponyc/archive/${version}.tar.gz"
checksum=9f78f4e7cd7965d46818db84a2ab4d3f5891ba10f16bcb189496238f503e6009
do_build() {
vsed -e 's/-Werror //' -i Makefile
make config=release default_pic=true
}
do_install() {
make config=release destdir=${DESTDIR}/usr/lib/pony/${version} prefix=${DESTDIR}/usr install
rm ${DESTDIR}/usr/bin/ponyc ${DESTDIR}/usr/lib/libponyrt.a \
${DESTDIR}/usr/lib/libponyc.a ${DESTDIR}/usr/include/pony.h
ln -s /usr/lib/pony/${version}/lib/libponyrt.a ${DESTDIR}/usr/lib
ln -s /usr/lib/pony/${version}/lib/libponyc.a ${DESTDIR}/usr/lib
ln -s /usr/lib/pony/${version}/bin/ponyc ${DESTDIR}/usr/bin
ln -s /usr/lib/pony/${version}/include/pony.h ${DESTDIR}/usr/include
vlicense LICENSE
vdoc README.md
vcopy examples usr/share/doc/ponyc/
}