From 911540a4636847f8300bae8d2a007cfe6aaf13a4 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 31 Aug 2017 16:48:26 +0200 Subject: [PATCH] New package: kaitai-struct-compiler-0.7 --- srcpkgs/kaitai-struct-compiler/template | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/kaitai-struct-compiler/template diff --git a/srcpkgs/kaitai-struct-compiler/template b/srcpkgs/kaitai-struct-compiler/template new file mode 100644 index 00000000000..1642b3449dd --- /dev/null +++ b/srcpkgs/kaitai-struct-compiler/template @@ -0,0 +1,28 @@ +# Template file for 'kaitai-struct-compiler' +pkgname=kaitai-struct-compiler +version=0.7 +revision=1 +noarch=yes +hostmakedepends="wget unzip" +depends="virtual?java-environment" +short_desc="Compiler for the Kaitai declarative binary format parsing language" +maintainer="Andrea Brancaleoni " +license="GPL-3" +homepage="http://kaitai.io" +distfiles="https://bintray.com/kaitai-io/universal/download_file?file_path=$version%2F$pkgname-$version.zip" +checksum=2fdd2646ea019bbf55be5bc27f24b037a7152514dbafbb7cfcdaf27a1d190045 + +XBPS_FETCH_CMD=wget + +pre_install() { + # patch libdir + sed -i 's|lib_dir=.*|lib_dir="/usr/share/java/kaitai-struct-compiler"|g' bin/$pkgname +} + +do_install() { + for lib in lib/*.jar; do + vinstall $lib 644 usr/share/java/$pkgname + done + vbin bin/$pkgname + ln -s $pkgname $DESTDIR/usr/bin/ksc +}