summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b5ac6bec417473ff9e9e023dc04f9cbc43ab7e5 (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
# Maintainer: jmcb <joelsgp@protonmail.com>
pkgname=pg-spgist_hamming-git
pkgver=r42.9fa70b0
pkgrel=1
pkgdesc="Fast hamming-distance range searches via native GiST Indexing facility in PostgreSQL"
arch=('x86_64')
url="https://github.com/fake-name/pg-spgist_hamming"
license=('BSD')
depends=('postgresql')
makedepends=('clang')
checkdepends=()
optdepends=()
provides=("${pkgname%-git}")
conflicts=()
source=("git+https://github.com/fake-name/pg-spgist_hamming.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "${pkgname%-git}/bktree"
  make
}

# makefile only has installcheck
# check() {
#   cd "${pkgname%-git}/bktree"
#   make -k check
# }

package() {
  cd "${pkgname%-git}/bktree"
  make DESTDIR="$pkgdir/" install

  # license
  cd ..
  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname%-git}" LICENSE 
}