blob: f13bd5b490b4dd84c503b1f00b4238507732ccf4 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer:
# Contributor: Morten Linderud <foxboron@archlinux.org>
# Contributor: Thomas Hipp <thomashipp at gmail dot com>
_pkgname="cowsql"
pkgname="$_pkgname-git"
pkgver=1.15.6.r0.g8c7d8cf
pkgrel=1
pkgdesc='An embeddable and replicated SQLite engine with high availability & automatic failover'
url="https://github.com/cowsql/cowsql"
license=('LGPL-3.0-only')
arch=('x86_64')
depends=(
'libuv'
'raft'
'sqlite'
)
makedepends=(
'git'
'readline'
'tcl'
'zlib'
)
options=('strip')
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
local _configure_options=(
--prefix=/usr
--enable-static=no
)
cd "$_pkgsrc"
autoreconf -i
./configure "${_configure_options[@]}"
make
}
check() {
cd "$_pkgsrc"
make check || true
}
package() {
cd "$_pkgsrc"
make DESTDIR="$pkgdir" install
}
|