diff --git a/srcpkgs/bish/patches/fix-build.patch b/srcpkgs/bish/patches/fix-build.patch new file mode 100644 index 00000000000..6507030442d --- /dev/null +++ b/srcpkgs/bish/patches/fix-build.patch @@ -0,0 +1,11 @@ +--- a/src/Util.h ++++ b/src/Util.h +@@ -16,7 +16,7 @@ + + // Convert int to string + inline std::string as_string(int i) { +- return dynamic_cast((std::ostringstream() << i )).str(); ++ return std::to_string(i); + } + + inline std::string as_string(const std::string &s) { diff --git a/srcpkgs/bish/template b/srcpkgs/bish/template index 2355c664a42..814d2343314 100644 --- a/srcpkgs/bish/template +++ b/srcpkgs/bish/template @@ -3,13 +3,17 @@ pkgname=bish version=0.1 revision=2 build_style=gnu-makefile -short_desc="A language that compiles to Bash" +short_desc="Language that compiles to Bash" maintainer="Diogo Leal " license="MIT" homepage="https://github.com/tdenniston/bish" distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz" checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b +do_check() { + ./bish -r tests/tests.bish +} + do_install() { vbin bish vlicense LICENSE