summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ee68682fafa3d6833ce29986ef62d83cc4e707e (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
# Maintainer: Yuki Ibe <yibe\100yibe\056org>
# Based on recutils package (https://aur.archlinux.org/packages/recutils/)
pkgname=recutils-git
pkgver=1.9.r3.gc09d1b1
pkgrel=1
pkgdesc="Set of tools and libraries to access plain text databases called recfiles."
arch=(i686 x86_64)
url="https://www.gnu.org/software/recutils/"
license=('GPL')
depends=('curl' 'libgcrypt')
makedepends=('git' 'help2man' 'rsync')
checkdepends=('check')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
	"git+https://git.savannah.gnu.org/git/recutils.git"
	"git+https://git.savannah.gnu.org/git/gnulib.git"
)
sha256sums=(
	'SKIP'
	'SKIP'
)

prepare() {
	cd "${pkgname%-git}"
	git config submodule.gnulib.url ../gnulib
	git -c protocol.file.allow=always submodule update gnulib
	./bootstrap
}

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

build() {
	cd "${pkgname%-git}"
	./configure --prefix=/usr
	make
}

check() {
	cd "${pkgname%-git}"
	make -k check
}

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