diff --git a/srcpkgs/loadp2/template b/srcpkgs/loadp2/template new file mode 100644 index 00000000000..9118f63a0a9 --- /dev/null +++ b/srcpkgs/loadp2/template @@ -0,0 +1,22 @@ +# Template file for 'loadp2' +pkgname=loadp2 +version=045 +revision=1 +build_style=gnu-makefile +hostmakedepends="spin2cpp" +depends="spin2cpp" +short_desc="Loader for the Parallax Propeller 2" +maintainer="Jürgen Buchmüller " +license="MIT" +homepage="https://github.com/totalspectrum/loadp2" +distfiles="https://github.com/totalspectrum/${pkgname}/archive/v${version}.tar.gz" +checksum=bc7313e386111df921cf07503b468f4a9b0ce580c786de1eaf0484a3289a6613 + +do_install() { + vmkdir usr/bin + vmkdir usr/libexec/p2tools/bin + vcopy board usr/libexec/p2tools + vinstall build/loadp2 755 usr/libexec/p2tools/bin + ln -s /usr/libexec/p2tools/bin/loadp2 ${DESTDIR}/usr/bin/ + vlicense LICENSE +}