void-packages/srcpkgs/loudmouth/template

35 lines
1.0 KiB
Bash

# Template file for 'loudmouth'
pkgname=loudmouth
version=1.5.3
revision=10
build_style=gnu-configure
configure_args="--with-ssl=openssl --with-asyncns --with-compile-warnings=no"
hostmakedepends="pkg-config automake libtool glib-devel gtk-doc"
makedepends="libglib-devel libidn-devel libressl-devel"
short_desc="Lightweight Jabber client library written in C/Glib"
maintainer="Lukas Epple <sternenseemann@lukasepple.de>"
license="LGPL-2.1-or-later"
homepage="https://github.com/mcabber/loudmouth"
distfiles="https://github.com/mcabber/${pkgname}/archive/${version}.tar.gz"
checksum=12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792
CFLAGS+=" -Wno-deprecated-declarations"
pre_configure() {
# Disable tests
sed -i '/SUBDIRS/s,tests,,g' Makefile.am
gtkdocize
autoreconf -fi
}
loudmouth-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libglib-devel libidn-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}