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

pkgname=libkdumpfile-git
pkgver=0.3.0.r271.gb11f14f
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')
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
}