From af3d7e4605248869eb5ed6b5b8cd344002f61257 Mon Sep 17 00:00:00 2001 From: svalo Date: Fri, 15 Jun 2018 09:55:08 +0200 Subject: Adds libcanberra optdepends for audio notification plugin and _ENABLE_PLUGINS variable * Adds _ENABLE_PLUGINS variable to build optional plugins * Adds libcanberra optdepends for audio notification plugin --- .SRCINFO | 5 +++-- PKGBUILD | 15 +++++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 7767aa7..208df88 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Tue Jan 2 11:25:15 UTC 2018 +# Fri Jun 15 07:50:51 UTC 2018 pkgbase = dino-git pkgdesc = Simple and modern Jabber/XMPP client written in vala - pkgver = r222.b482c57 + pkgver = r268.df8b5fc pkgrel = 1 url = https://github.com/dino/dino arch = i686 @@ -21,6 +21,7 @@ pkgbase = dino-git depends = libgcrypt depends = libsoup depends = sqlite + optdepends = libcanberra: audio notification support provides = dino conflicts = dino source = dino::git+https://github.com/dino/dino diff --git a/PKGBUILD b/PKGBUILD index 6d9d6bb..231a9cf 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # Contributor: svalo pkgname=dino-git -pkgver=r222.b482c57 +pkgver=r268.df8b5fc pkgrel=1 pkgdesc="Simple and modern Jabber/XMPP client written in vala" arch=('i686' 'x86_64' 'aarch64') @@ -10,13 +10,20 @@ url="https://github.com/dino/dino" license=('GPL3') depends=('glib2>=2.38' 'glib-networking' 'gtk3>=3.22' 'gpgme' 'libgee>=0.10' 'libgcrypt' 'libsoup' 'sqlite') makedepends=('git' 'cmake' 'vala>=0.34' 'ninja') +optdepends=('libcanberra: audio notification support') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=('dino::git+https://github.com/dino/dino') sha512sums=('SKIP') -# Any or all of the following plugin can be disabled: omemo, openpgp, http-files. Populate following string as per your needs and uncomment it -#_DISABLE_PLUGINS="--disable-plugin='omemo;openpgp;http-files'" +### Any or all of the following plugin can be disabled: omemo, openpgp, http-files. Populate following string as per your needs and uncomment it. + +# _DISABLE_PLUGINS="--disable-plugin='omemo;openpgp;http-files'" + +### Any or all of the following plugin can be enabled: notification-sound. Populate the following string as per you needs and uncomment it. +### Install any needed optional dependency before + +#_ENABLE_PLUGINS="--enable-plugin='notification-sound'" pkgver() { cd "${srcdir}/${pkgname%-git}" @@ -25,7 +32,7 @@ pkgver() { build() { cd "${srcdir}/${pkgname%-git}" - ./configure $_DISABLE_PLUGINS --prefix="/usr" --with-tests CC="$CC" CFLAGS="$CFLAGS" VALACFLAGS="$VALACFLAGS" + ./configure $_DISABLE_PLUGINS $_ENABLE_PLUGINS --prefix="/usr" --with-tests CC="$CC" CFLAGS="$CFLAGS" VALACFLAGS="$VALACFLAGS" make } -- cgit v1.2.3