aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libphonenumber/APKBUILD
blob: f668dce9b3cdc900134526ad21097f88abb295f4 (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
# Contributor: Bhushan Shah <bshah@kde.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libphonenumber
pkgver=8.10.18
pkgrel=1
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 protobuf-dev icu-dev"
makedepends="$depends_dev cmake gtest-dev"
checkdepends="gtest"
subpackages="$pkgname-static $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/googlei18n/libphonenumber/archive/v$pkgver.tar.gz"

build() {
	cd "$builddir/cpp"
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	cd "$builddir/cpp"
	./libphonenumber_test
}
package() {
	cd "$builddir/cpp"
	DESTDIR="$pkgdir" make install
}

sha512sums="3c45b353cc1a3ac897c9fe59d01c643753f27656d6f42c1733700b478a8a6b9d3c0b204b7276dc8f91c5e827742feb597b90361255217949c17d64daffbec649  libphonenumber-8.10.18.tar.gz"