profanity: added notify/xscreensaver options (off); cross support.

This commit is contained in:
Juan RP 2014-02-03 16:10:15 +01:00
parent d6b1e8aab0
commit 153d506a02

View file

@ -1,13 +1,33 @@
# Template file for 'profanity'
pkgname=profanity
version=0.3.1
revision=1
revision=2
build_style=gnu-configure
configure_args="ac_cv_func_malloc_0_nonnull=yes"
hostmakedepends="pkg-config"
makedepends="expat-devel ncurses-devel openssl-devel libXScrnSaver-devel libcurl-devel libnotify-devel libstrophe-git"
makedepends="glib-devel expat-devel ncurses-devel openssl-devel libcurl-devel libstrophe-git"
short_desc="A console based XMPP client"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.profanity.im/"
distfiles="http://www.profanity.im/${pkgname}-${version}.tar.gz"
checksum=7ec5fecbfa7ec5c2fae18fc63819eef926bebefd40d5bbf80e10b91e1b0c7ed5
# Package build options
build_options="notify xscreensaver"
desc_option_notify="Enable support for desktop notifications"
desc_option_xscreensaver="Enable support for libXScrnSaver to determine idle time"
if [ "$build_option_notify" ]; then
configure_args+=" --enable-notifications"
makedepends+=" libnotify-devel"
else
configure_args+=" --disable-notifications"
fi
if [ "$build_option_xscreensaver" ]; then
configure_args+=" --with-xscreensaver"
makedepends+=" libXScrnSaver-devel"
else
configure_args+=" --without-xscreensaver"
fi