summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4df6f29464c7fb1aaa42de494e4f3235f26070f8 (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
# In order to get the DeviceAtlas enterprise C api and a limited JSON data file,
# you need to visit https://deviceatlas.com/deviceatlas-haproxy-module
# and register to get a license key. If you want to upgrade your license,
# please visit this page https://deviceatlas.com/contact-us

# Maintainer: David Carlier <devnexen@gmail.com>
pkgname=deviceatlas-enterprise-c
pkgver=2.1.2_1
pkgrel=1
pkgdesc="DeviceAtlas enterprise C API"
arch=('i686' 'x86_64')
url="https://deviceatlas.com/deviceatlas-haproxy-module"
license=('unknown')
depends=('pcre')
makedepends=('cmake')
source=("$pkgname-$pkgver.tgz::file://$pkgname-$pkgver.tgz" "$pkgname-src-cmakelists.patch")
md5sums=('ac23e436ff408ef9a4377c68e2609173' 'f888cc250a58aa1e26bc4d1e2ecda838')

prepare() {
	cd $pkgname-$pkgver
	patch -p0 -i ../$pkgname-src-cmakelists.patch
}

build() {
	cd $pkgname-$pkgver
	cmake .
	make
}

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