summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ec0263d838f089921153aa8341142f6371e00f8 (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: Omar Sandoval <osandov at osandov dot com>

pkgname=libkdumpfile-git
pkgver=0.4.1.r0.gee29349
pkgrel=1
pkgdesc='Library for kernel core dump file access (git version)'
arch=('x86_64')
url='https://github.com/ptesarik/libkdumpfile'
license=('GPL')
depends=('lzo' 'snappy' 'zlib')
makedepends=('git')
conflicts=('libkdumpfile')
provides=('libkdumpfile')
source=("$pkgname::git+https://github.com/ptesarik/libkdumpfile")
sha256sums=('SKIP')

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

build() {
	cd "$pkgname"
	autoreconf -fi
	./configure --prefix=/usr --without-python
	make
}

check() {
	cd "$pkgname"
	make check
}

package() {
	cd "$pkgname"
	make DESTDIR="$pkgdir" install
}