diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -1,34 +1,37 @@ # Maintainer: Guillaume Horel <guillaume.horel@gmail.com> -pkgname='farmhash' -pkgver='1.1' -pkgrel=1 -pkgdesc="FarmHash is a family of hash functions" +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") -sha256sums=('SKIP') +source=("git+https://github.com/google/farmhash.git" + "namespace.patch") +sha256sums=('SKIP' + 'e3f7e0c3a421e814305611395e4abf9734d4d96214815dfab384702a6772ba92') prepare() { - cd "${srcdir}/${pkgname}" + cd "${pkgname}" + patch -p1 -i ../namespace.patch autoreconf -vif ./configure CXXFLAGS="-g -mavx -maes -O3" --prefix=/usr } build() { - cd "${srcdir}/${pkgname}" + cd "${pkgname}" make all } package() { - cd "${srcdir}/${pkgname}" + cd "${pkgname}" make DESTDIR="$pkgdir" install } check() { - cd "${srcdir}/${pkgname}" + cd "${pkgname}" make check } |