ponyc: add examples, another symlink fix

This commit is contained in:
bougyman 2015-05-11 12:12:42 -05:00
parent 366f90b3b4
commit 5a5524f1bc

View File

@ -1,7 +1,7 @@
# Template file for 'ponyc'
pkgname=ponyc
version=0.1.3
revision=2
revision=3
only_for_archs="x86_64"
build_style=gnu-makefile
hostmakedepends="llvm"
@ -19,11 +19,14 @@ do_build() {
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
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/
}