diff --git a/srcpkgs/marisa/template b/srcpkgs/marisa/template index 119a19c0958415..32c745fef1d4ac 100644 --- a/srcpkgs/marisa/template +++ b/srcpkgs/marisa/template @@ -1,22 +1,19 @@ # Template file for 'marisa' pkgname=marisa -version=0.2.6 +version=0.3.1 revision=1 -build_style=gnu-configure -hostmakedepends="autoconf automake libtool" +build_style=cmake +configure_args="-DBUILD_SHARED_LIBS=ON -DENABLE_NATIVE_CODE=OFF -DBUILD_TESTING=OFF" +hostmakedepends="pkg-config" short_desc="Matching Algorithm with Recursively Implemented StorAge" maintainer="Orphaned " license="BSD-2-Clause, LGPL-2.1-or-later" homepage="https://github.com/s-yata/marisa-trie" -distfiles=https://github.com/s-yata/marisa-trie/files/4832504/marisa-$version.tar.gz -checksum=1063a27c789e75afa2ee6f1716cc6a5486631dcfcb7f4d56d6485d2462e566de - -case "$XBPS_TARGET_MACHINE" in - x86_64*) configure_args+=" --enable-popcnt --enable-sse2";; -esac +distfiles="https://github.com/s-yata/marisa-trie/archive/refs/tags/v${version}.tar.gz" +checksum=986ed5e2967435e3a3932a8c95980993ae5a196111e377721f0849cad4e807f3 pre_configure() { - autoreconf -fi + vsed -i 's/CONFIGURATIONS Release//g' CMakeLists.txt } post_install() { @@ -29,7 +26,7 @@ marisa-devel_package() { pkg_install() { vmove usr/include vmove usr/lib/pkgconfig - vmove "usr/lib/*.a" + vmove usr/lib/cmake vmove "usr/lib/*.so" } }