void-packages/srcpkgs/marisa/template

37 lines
929 B
Bash

# Template file for 'marisa'
pkgname=marisa
version=0.2.6
revision=1
wrksrc="${pkgname}-trie-$version"
build_style=gnu-configure
hostmakedepends="autoconf automake libtool"
short_desc="Matching Algorithm with Recursively Implemented StorAge"
maintainer="Yuxuan Shui <yshuiv7@gmail.com>"
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
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense COPYING.md
}
marisa-devel_package() {
depends="marisa-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}