summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6b7aa0e422ae32b4a5f77c073ebe3b0fd82113f (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
pkgname=sph-db-git
pkgver=140.r8fdf4b3
pkgrel=1
pkgdesc="minimal nosql database for records and relations"
arch=('any')
license=('GPL3')
depends=('lmdb')
makedepends=('git' 'gcc')
provides=("sph-db=$pkgver")
conflicts=('sph-db')
url="https://github.com/sph-mn/sph-db"
source=("git+https://github.com/sph-mn/sph-db.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/sph-db"
  printf "%s.r%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/sph-db"
  ./exe/compile-c
}

package() {
  cd "${srcdir}/sph-db"
  ./exe/install "${pkgdir}"
}