From 906c80b19e2ee8bfd0d0f808c687bcef0c9d68ff Mon Sep 17 00:00:00 2001 From: svalo Date: Sun, 22 Oct 2017 09:56:53 +0200 Subject: Improved PKGBUILD [PKGBUILD] Allow to disable any or all of the plugins --- .SRCINFO | 6 +++--- PKGBUILD | 11 +++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index ed4c3a1..6e059c8 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Wed Sep 20 07:30:40 UTC 2017 +# Sun Oct 22 07:56:02 UTC 2017 pkgbase = dino-git pkgdesc = Simple and modern Jabber/XMPP client written in vala - pkgver = r178.54a25fd - pkgrel = 1 + pkgver = r179.9d8e1e8 + pkgrel = 2 url = https://github.com/dino/dino arch = i686 arch = x86_64 diff --git a/PKGBUILD b/PKGBUILD index 8b06cda..8158216 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,19 +2,22 @@ # Contributor: svalo pkgname=dino-git -pkgver=r178.54a25fd -pkgrel=1 +pkgver=r179.9d8e1e8 +pkgrel=2 pkgdesc="Simple and modern Jabber/XMPP client written in vala" arch=('i686' 'x86_64' 'aarch64') url="https://github.com/dino/dino" license=('GPL3') -depends=('glib2>=2.38' 'glib-networking' 'gtk3>=3.22' 'gpgme' 'libgee>=0.10' 'libgcrypt' 'libsoup' 'sqlite' ) +depends=('glib2>=2.38' 'glib-networking' 'gtk3>=3.22' 'gpgme' 'libgee>=0.10' 'libgcrypt' 'libsoup' 'sqlite') makedepends=('git' 'cmake' 'vala>=0.30' 'ninja') 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'" + pkgver() { cd "${srcdir}/${pkgname%-git}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" @@ -22,7 +25,7 @@ pkgver() { build() { cd "${srcdir}/${pkgname%-git}" - ./configure --prefix="/usr" --with-tests CC="$CC" CFLAGS="$CFLAGS" VALACFLAGS="$VALACFLAGS" + ./configure $_DISABLE_PLUGINS --prefix="/usr" --with-tests CC="$CC" CFLAGS="$CFLAGS" VALACFLAGS="$VALACFLAGS" make } -- cgit v1.2.3