void-packages/srcpkgs/libphonenumber/template

29 lines
914 B
Bash

# Template file for 'libphonenumber'
pkgname=libphonenumber
version=8.13.30
revision=1
build_wrksrc=cpp
build_style=cmake
build_helper=qemu
configure_args="-DREGENERATE_METADATA=OFF"
hostmakedepends="pkg-config protobuf"
makedepends="boost-devel gtest-devel icu-devel protobuf-devel"
short_desc="Google's common library for handling international phone numbers"
maintainer="Louis Dupré Bertoni <contact@louisdb.xyz>"
license="Apache-2.0"
homepage="https://github.com/googlei18n/libphonenumber"
distfiles="https://github.com/google/libphonenumber/archive/refs/tags/v${version}.tar.gz"
checksum=126d2680c282107fcb54286fbae5709df84d7ec2e93ce94f3ab4ae373dff6c3e
CXXFLAGS="-D_FILE_OFFSET_BITS=64"
libphonenumber-devel_package() {
depends="${sourcepkg}>=${version}_${revision} protobuf-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}