summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76e6a6d9b7e831f752132ea5875aaec34c77359c (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=farmhash
pkgver=1.1
pkgrel=2
pkgdesc='FarmHash is a family of hash functions'
url="https://github.com/google/farmhash"
depends=('gcc-libs')
makedepends=('git')
checkdepends=()
license=('MIT')
arch=('x86_64')
source=("git+https://github.com/google/farmhash.git"
    "namespace.patch")
sha256sums=('SKIP'
            'e3f7e0c3a421e814305611395e4abf9734d4d96214815dfab384702a6772ba92')

prepare() {
    cd "${pkgname}"
    patch -p1 -i ../namespace.patch
    autoreconf -vif
    ./configure CXXFLAGS="-g -mavx -maes -O3"  --prefix=/usr
}

build() {
    cd "${pkgname}"
    make all
}

package() {
    cd "${pkgname}"
    make DESTDIR="$pkgdir" install
}

check() {
    cd "${pkgname}"
    make check
}