void-packages/srcpkgs/ngircd/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

26 lines
850 B
Bash

# Template build file for 'ngircd'
pkgname=ngircd
version=22
revision=4
build_style=gnu-configure
build_options="systemd"
configure_args="--enable-ipv6 --with-openssl --without-ident ac_cv_func_getaddrinfo=yes"
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel"
conf_files="/etc/ngircd.conf"
homepage="http://ngircd.barton.de/"
short_desc="Free, portable and lightweight Internet Relay Chat server"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
distfiles="http://ngircd.barton.de/pub/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=a4c13e6a5f991d248412d550b4617484d7f977c786a0323f0301b4d4707a639e
post_configure() {
echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h
}
post_install() {
vsv ngircd
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
fi
}