void-packages/srcpkgs/re/template

32 lines
796 B
Bash

# Template file for 're'
pkgname=re
version=2.10.0
revision=2
build_style=cmake
configure_args="-DUSE_OPENSSL=yes"
makedepends="openssl-devel zlib-devel"
short_desc="Portable library for real-time communications"
maintainer="John <me@johnnynator.dev>"
license="BSD-3-Clause"
homepage="https://github.com/baresip/re/"
distfiles="https://github.com/baresip/re/archive/refs/tags/v${version}.tar.gz"
checksum=4d2b6f8fc73efdbcb5a7b2a98d0b46ac6eb28ede5ae90f9596b49663eec623a9
CFLAGS=-D_GNU_SOURCE
post_install() {
vlicense LICENSE
}
re-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} openssl-devel zlib-devel"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
}
}