summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 620df4e573aa840bd1225ab49b245ba325e7c1f7 (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: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Audric Schiltknecht <storm+arch@chemicalstorm.org>

pkgname=rohc
pkgver=2.3.1
pkgrel=1
pkgdesc="RObust Header Compression (ROHC) library"
arch=('x86_64')
url='https://github.com/didier-barveux/rohc'
license=('LGPL2.1')
depends=('glibc')
makedepends=('libpcap' 'cmocka')
provides=('librohc.so=3-64')
source=("$pkgname-$pkgver.tar.xz::https://rohc-lib.org/download/$pkgname-2.3.x/$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('e5c3808518239a6a4673c0c595356d5054b208f32e39015a487a0490d03f9bec')

PURGE_TARGETS=(usr/share/doc/rohc/*)

build() {
	cd "$pkgname-$pkgver"
	./autogen.sh
	./configure \
		--prefix=/usr \
		--enable-rohc-debug=no \
		--disable-static \
		--enable-fortify-sources \
		--enable-rohc-tests
	make
}

check() {
	cd "$pkgname-$pkgver"
	make check || true
}

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