From 60aa132f563ad5df25cfdd9cd10d6afb18fc39e6 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Thu, 13 Dec 2018 19:43:42 +0100 Subject: [PATCH] New package: ksql-0.3.2 --- srcpkgs/ksql/patches/configure-cross.patch | 44 ++++++++++++++++++++++ srcpkgs/ksql/template | 19 ++++++++++ 2 files changed, 63 insertions(+) create mode 100644 srcpkgs/ksql/patches/configure-cross.patch create mode 100644 srcpkgs/ksql/template diff --git a/srcpkgs/ksql/patches/configure-cross.patch b/srcpkgs/ksql/patches/configure-cross.patch new file mode 100644 index 00000000000..899a7860583 --- /dev/null +++ b/srcpkgs/ksql/patches/configure-cross.patch @@ -0,0 +1,44 @@ +--- configure ++++ configure +@@ -214,19 +215,28 @@ + return 1 + fi + +- if ./test-${1} 1>&3 2>&3; then +- echo "${1}: yes" 1>&2 +- echo "${1}: yes" 1>&3 +- echo 1>&3 +- eval HAVE_${2}=1 +- rm "test-${1}" +- return 0 +- else +- echo "${1}: execution failed with $?" 1>&3 +- echo 1>&3 +- rm "test-${1}" +- return 1 +- fi ++ echo "${1}: yes" 1>&2 ++ echo "${1}: yes" 1>&3 ++ echo 1>&3 ++ eval HAVE_${2}=1 ++ rm "test-${1}" ++ return 0 ++ ++ # Don't actually run the test: none of our tests check for ++ # run-time behaviour. ++ # if ./test-${1} 1>&3 2>&3; then ++ # echo "${1}: yes" 1>&2 ++ # echo "${1}: yes" 1>&3 ++ # echo 1>&3 ++ # eval HAVE_${2}=1 ++ # rm "test-${1}" ++ # return 0 ++ # else ++ # echo "${1}: execution failed with $?" 1>&3 ++ # echo 1>&3 ++ # rm "test-${1}" ++ # return 1 ++ # fi + } + + # Run a complete autoconfiguration test, including the check for diff --git a/srcpkgs/ksql/template b/srcpkgs/ksql/template new file mode 100644 index 00000000000..426b8801462 --- /dev/null +++ b/srcpkgs/ksql/template @@ -0,0 +1,19 @@ +# Template file for 'ksql' +pkgname=ksql +version=0.3.2 +revision=1 +build_style=configure +configure_args="PREFIX=/usr MANDIR=/usr/share/man" +hostmakedepends="sqlite" +makedepends="sqlite-devel" +short_desc="Yet another SQLite wrapper" +maintainer="Duncaen " +license="ISC" +homepage="https://kristaps.bsd.lv/ksql/" +distfiles="https://kristaps.bsd.lv/ksql/snapshots/ksql-${version}.tar.gz" +checksum=960f8b80e7a57091b393a62ab7b274b6ee3aa05950f03cad00dd6523af4cb47b + +post_install() { + sed -n '2,16p' ksql.c >LICENSE + vlicense LICENSE +}