void-packages/srcpkgs/re/template

32 lines
796 B
Bash

# Template file for 're'
pkgname=re
version=3.14.0
revision=1
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=64dfbfbcf6fb6db5405fc11af38bc804fa0e9fbd7141bfe0749e96842e52f4f2
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
}
}