summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3ea68fe8b1c4cf434946264e1d5b87768c72f05 (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
# Maintainer: MobiusHorizons <codemobius@gmail.com>
pkgname=hyperleveldb
pkgver=1.2.2
pkgrel=1
pkgdesc="A fork of LevelDB intended to meet the needs of HyperDex while remaining compatible with LevelDB used by HyperDex"
url="https://github.com/rescrv/HyperLevelDB"
arch=('x86_64' 'i686')
license=('BSD')
depends=('snappy')
makedepends=('wget' 'gcc')
conflicts=()
replaces=()
backup=()
source=("http://hyperdex.org/src/${pkgname}-${pkgver}.tar.gz")
md5sums=('440d22289fa0fd355d01bc8ee04e04ae')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i 's/db_bench_LDADD = libhyperleveldb\.la -lpthread/db_bench_LDADD = libhyperleveldb.la -lpthread $(SNAPPY_LIBS)/' Makefile.in
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

# vim:set ts=2 sw=2 et: