blob: 94a6848d0b01d9fe1d44c4623014b66afbb5b8a8 (
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
|
# Maintainer: Maciej Żok <maciek.zok@gmail.com>
pkgname=tkrzw-git
pkgrel=1
pkgver=0.9.3
pkgdesc="DBM with various algorithms for key-value storage"
arch=('x86_64')
url="https://dbmx.net/tkrzw/"
license=('APACHE')
depends=('gcc-libs')
makedepends=('git')
checkdepends=('gmock' 'gtest')
provides=("${pkgname%-git}" 'libtkrzw.so')
conflicts=("${pkgname%-git}")
source=('git+https://github.com/estraier/tkrzw.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.r%s.%s" "$(sed -n 's/AC_INIT(tkrzw,\s*\(.*\))/\1/p' configure.in)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/${pkgname%-git}"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR="$pkgdir/" install
echo "Installing license..."
install -Dm0755 "${srcdir}/tkrzw/COPYING" \
"${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|