# Template file for 'marisa' pkgname=marisa version=0.2.5.20170406 revision=1 _gitrev="59e410597981475bae94d9d9eb252c1d9790dc2f" wrksrc="${pkgname}-trie-${_gitrev}" build_style=gnu-configure hostmakedepends="autoconf automake libtool" short_desc="Matching Algorithm with Recursively Implemented StorAge" maintainer="Yuxuan Shui " license="2-clause-BSD, LGPL-2.1" homepage="https://github.com/s-yata/marisa-trie" distfiles="https://github.com/s-yata/marisa-trie/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz" checksum="e6a08b8f78baa476e5564c01c3700e9eedb36e5c70e4ec3cd21649d7026da00e" case "$XBPS_TARGET_MACHINE" in x86_64*) configure_args+=" --enable-popcnt --enable-sse2";; esac pre_configure() { autoreconf -fi } post_configure() { sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool } 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" } }