| 1 | # Contributor: Alex Yam <[email protected]> |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=darts-clone |
| 5 | pkgver=0.32h |
| 6 | pkgrel=1 |
| 7 | pkgdesc="C++ header library for a static double-array trie structure" |
| 8 | url="https://github.com/s-yata/darts-clone" |
| 9 | arch="all !s390x" # s390x: failed dictionary test |
| 10 | license="BSD-2-Clause" |
| 11 | makedepends="autoconf automake libtool" |
| 12 | subpackages="$pkgname-dev" |
| 13 | source="$pkgname-$pkgver.tar.gz::https://github.com/s-yata/darts-clone/archive/v$pkgver.tar.gz" |
| 14 | |
| 15 | prepare() { |
| 16 | default_prepare |
| 17 | autoreconf -fi |
| 18 | } |
| 19 | |
| 20 | build() { |
| 21 | ./configure \ |
| 22 | --build=$CBUILD \ |
| 23 | --host=$CHOST \ |
| 24 | --prefix=/usr \ |
| 25 | --sysconfdir=/etc \ |
| 26 | --mandir=/usr/share/man \ |
| 27 | --localstatedir=/var |
| 28 | make |
| 29 | } |
| 30 | |
| 31 | check() { |
| 32 | make check |
| 33 | } |
| 34 | |
| 35 | package() { |
| 36 | make DESTDIR="$pkgdir" install |
| 37 | } |
| 38 | |
| 39 | sha512sums=" |
| 40 | 5cbbf8c5fa3cc2ec15e72b57d63e0cf324a18a54f17fe80556aa3521568b2deabdab649ebfae4a2e97ff1c2c512be981ed7fb190ca4583e4424db0c6e452b17f darts-clone-0.32h.tar.gz |
| 41 | " |