blob: 67e0b35d1df402137844a69d1631c14bf2eec972 (
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
|
# Contributor: Bhushan Shah <bshah@kde.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libphonenumber
pkgver=8.12.17
pkgrel=0
pkgdesc="Library for parsing, formatting, and validating international phone numbers."
url="https://github.com/googlei18n/libphonenumber"
arch="all"
license="Apache-2.0"
depends_dev="
boost-dev
icu-dev
protobuf-dev
"
makedepends="$depends_dev
cmake
gtest-dev
"
checkdepends="gtest"
subpackages="$pkgname-static $pkgname-dev"
source="https://github.com/googlei18n/libphonenumber/archive/v$pkgver/libphonenumber-v$pkgver.tar.gz"
build() {
cd cpp
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
cd cpp
./build/libphonenumber_test
}
package() {
cd cpp
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="7ca41f541156f5b4cb64c57def93e11c33d7da7eb67bfc7f7d1774730bc8de80b999bf74cdf15b87e12a105d22564b5bbc00e7b3322390f4a4466648fa6b8bdb libphonenumber-v8.12.17.tar.gz"
|