aboutsummaryrefslogblamecommitdiffstats
path: root/community/libphonenumber/APKBUILD
blob: f17325cde8b11c5c8eea582effdcdb7ed2938f99 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                 
              
        







                                                                                      
                                                                                                      


















                                                   
                                                                                                                                                                            
# Contributor: Bhushan Shah <bshah@kde.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libphonenumber
pkgver=8.10.21
pkgrel=3
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="791c3dd2f4ce2abecafac1ca2b61708152c6b51f3a417084e0163322980e83297f75e48fa71f6fa2f6fcd20fdaa233bd1f99a2ce499aec56a785cbd1fedc2662  libphonenumber-8.10.21.tar.gz"