Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions srcpkgs/marisa/template
Original file line number Diff line number Diff line change
@@ -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 <orphan@voidlinux.org>"
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() {
Expand All @@ -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"
}
}