void-packages/srcpkgs/ponyc/template

33 lines
1.2 KiB
Bash
Raw Normal View History

2015-05-11 17:23:02 +02:00
# Template file for 'ponyc'
pkgname=ponyc
version=0.1.3
revision=3
2015-05-11 17:23:02 +02:00
only_for_archs="x86_64"
build_style=gnu-makefile
hostmakedepends="llvm"
makedepends="zlib-devel ncurses-devel"
short_desc="OO, actor-model, capabilities-secure, high-performance language"
maintainer="bougyman <bougyman@voidlinux.eu>"
license="BSD"
homepage="http://ponylang.org/"
distfiles="https://github.com/CausalityLtd/ponyc/archive/${version}.tar.gz"
checksum=ee0abb8fbaabd3ccb750afc139eb9c7182f382ca66b3eb1c12e76344d7bf7fc0
do_build() {
make config=release destdir=/usr/lib/pony/${version} prefix=/usr
}
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
2015-05-11 17:23:02 +02:00
vlicense LICENSE
vdoc README.md
vcopy examples usr/share/doc/ponyc/
2015-05-11 17:23:02 +02:00
}