blob: a1ec29b07e87ed014586a2ae06145945ffe89057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=marisa-trie
pkgver=0.2.5
pkgrel=0
pkgdesc="Static and space-efficient trie data structure library"
url="https://github.com/s-yata/marisa-trie"
arch="all !mips !mips64" # fails to build on mips
license="BSD-2-Clause"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/s-yata/marisa-trie/archive/v$pkgver.tar.gz"
prepare() {
default_prepare
autoreconf -i
}
build() {
case "$CARCH" in
x86|x86_64) sse2="--enable-sse2" ;;
*) sse2="--disable-sse2" ;;
esac
./configure \
--prefix=/usr \
--disable-static \
$sse2
make
}
check() {
make check
}
package() {
DESTDIR="$pkgdir" make install
}
sha512sums="62975a2dacd2a1072c990cd490f866cd5483c069c94a4706baf3ffc21ec43991583a8ef8721c3b841617b0654cbb894698c19759ff12b8887b6fd28939dfb547 marisa-trie-0.2.5.tar.gz"
|