summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e698c5fcaf75b1721d9538554a1ed36c85dee723 (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: Thomas Hipp <thomashipp at gmail dot com>
pkgname=dqlite-git
_pkgname=dqlite
pkgver=1.11.1.r17.gda62ece
pkgrel=1
pkgdesc="Distributed SQLite"
arch=('x86_64')
url="https://github.com/canonical/dqlite"
license=('LGPL3')
depends=('libuv>=1.8.0' 'sqlite' 'raft')
makedepends=('git')
source=("git+https://github.com/canonical/dqlite.git")
sha256sums=('SKIP')
conflicts=('dqlite')
provides=('dqlite')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "$_pkgname"
}

build() {
	cd "$_pkgname"
	autoreconf -i
	./configure --prefix=/usr
	make
}

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