30 lines
1.2 KiB
Bash
30 lines
1.2 KiB
Bash
# Template file for 'ponyc'
|
|
pkgname=ponyc
|
|
version=0.19.1
|
|
revision=1
|
|
only_for_archs="x86_64"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="llvm3.9"
|
|
makedepends="zlib-devel ncurses-devel libatomic-devel"
|
|
short_desc="OO, actor-model, capabilities-secure, high-performance language"
|
|
maintainer="bougyman <bougyman@voidlinux.eu>"
|
|
license="2-clause-BSD"
|
|
homepage="http://ponylang.org/"
|
|
distfiles="https://github.com/CausalityLtd/ponyc/archive/${version}.tar.gz"
|
|
checksum=186f86e65160b1cfca4d20e149b6b514384f9f3bdb95ac9fa0ab22c03bce293a
|
|
|
|
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
|
|
vlicense LICENSE
|
|
vdoc README.md
|
|
vcopy examples usr/share/doc/ponyc/
|
|
}
|