jsonnet: revert to gnu-makefile, cmake breaks cross.

This commit is contained in:
Leah Neukirchen 2022-01-04 17:20:26 +01:00
parent d7f1a30c9a
commit 25713c10de

View file

@ -1,10 +1,9 @@
# Template file for 'jsonnet' # Template file for 'jsonnet'
pkgname=jsonnet pkgname=jsonnet
version=0.18.0 version=0.18.0
revision=2 revision=3
build_style=cmake build_style=gnu-makefile
configure_args="-DUSE_SYSTEM_GTEST=ON" make_use_env=true
makedepends="gtest-devel"
short_desc="Data templating language" short_desc="Data templating language"
maintainer="Leah Neukirchen <leah@vuxu.org>" maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0" license="Apache-2.0"
@ -12,17 +11,13 @@ homepage="https://github.com/google/jsonnet"
distfiles="https://github.com/google/jsonnet/archive/v${version}.tar.gz" distfiles="https://github.com/google/jsonnet/archive/v${version}.tar.gz"
checksum=85c240c4740f0c788c4d49f9c9c0942f5a2d1c2ae58b2c71068107bc80a3ced4 checksum=85c240c4740f0c788c4d49f9c9c0942f5a2d1c2ae58b2c71068107bc80a3ced4
post_install() { CXXFLAGS="-fPIC"
# remove third-party stuff
rm -r ${DESTDIR}/usr/lib/cmake ${DESTDIR}/usr/include/c4 ${DESTDIR}/usr/lib/libc4*
}
jsonnet-devel_package() { jsonnet-devel_package() {
depends="${sourcepkg}-${version}_${revision}" depends="${sourcepkg}-${version}_${revision}"
short_desc="${short_desc} - development files" short_desc="${short_desc} - development files"
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
} }
} }