blob: 54e3da3d422ca3e3f20fad013af97dc508af4c15 (
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
|
# Maintainer: Clar Fon <them@lightdark.xyz>
_pkgname=uap-cpp
pkgname=$_pkgname-git
pkgver=r98.8701a85
pkgrel=1
pkgdesc="C++ implementation of ua-parser"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/ua-parser/uap-cpp'
license=('MIT')
provides=('uap-cpp')
conflicts=('uap-cpp')
makedepends=('git' 'boost')
depends=('yaml-cpp' 'boost-libs' 'uap-core')
source=(git+https://github.com/ua-parser/uap-cpp.git)
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule update --init
}
build() {
cd "${srcdir}/${_pkgname}"
make libuaparser_cpp.a libuaparser_cpp.so
}
check() {
cd "${srcdir}/${_pkgname}"
cp /usr/share/uap-core/regexes.yaml uap-core
# tests are broken
# make test
}
package() {
install -Dm755 "${srcdir}/${_pkgname}/libuaparser_cpp.so" "${pkgdir}/usr/lib/libuaparser_cpp.so"
install -Dm644 "${srcdir}/${_pkgname}/libuaparser_cpp.a" "${pkgdir}/usr/lib/libuaparser_cpp.a"
install -Dm644 "${srcdir}/${_pkgname}/UaParser.h" "${pkgdir}/usr/include/uap-cpp/UaParser.h"
}
|