void-packages/srcpkgs/libphonenumber/template
2021-12-13 14:58:05 +01:00

30 lines
897 B
Bash

# Template file for 'libphonenumber'
pkgname=libphonenumber
version=8.12.38
revision=1
build_wrksrc=cpp
build_style=cmake
build_helper=qemu
make_cmd=make
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=6a57c68550c382ac176715e275d4bed6deac1b5736df2e184e34653da1f141c2
pre_configure() {
export CMAKE_GENERATOR="Unix Makefiles"
}
libphonenumber-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}