arch-ppa/src/dino-git/PKGBUILD

53 lines
1.9 KiB
Bash
Raw Normal View History

2018-01-06 01:12:52 -05:00
# Maintainer: Seppia <seppia@seppio.fish>
# Contributor: svalo <me@valo.space>
pkgname=dino-git
2021-05-12 20:37:59 -04:00
pkgver=v0.2.0.r28.gad031ee3
2018-01-06 01:12:52 -05:00
pkgrel=1
pkgdesc="Simple and modern Jabber/XMPP client written in vala"
arch=('i686' 'x86_64' 'aarch64')
2021-05-12 20:37:59 -04:00
url="https://dino.im/"
2018-01-06 01:12:52 -05:00
license=('GPL3')
2021-05-12 20:37:59 -04:00
depends=('glib2>=2.38' 'glib-networking' 'gtk3>=3.22' 'gpgme' 'libgee>=0.10' 'libgcrypt' 'libsoup' 'sqlite' 'qrencode' 'libsignal-protocol-c' 'gspell' )
makedepends=('git' 'cmake' 'vala>=0.34' 'ninja' 'ttf-liberation')
2018-06-19 16:31:21 -04:00
optdepends=('libcanberra: audio notification support')
2018-01-06 01:12:52 -05:00
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('dino::git+https://github.com/dino/dino')
sha512sums=('SKIP')
2018-06-19 16:31:21 -04:00
### 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'"
2018-01-06 01:12:52 -05:00
### Since 55b148a0f78c1abef57c21b2a84d97cad32b2290 dino uses by default the shared libsignal library.
# To restore the old behaviour add '--with-libsignal-in-tree' flag to configure
2018-01-06 01:12:52 -05:00
pkgver() {
cd "${srcdir}/${pkgname%-git}"
2021-05-12 20:37:59 -04:00
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
2018-01-06 01:12:52 -05:00
}
build() {
cd "${srcdir}/${pkgname%-git}"
./configure $_DISABLE_PLUGINS $_ENABLE_PLUGINS --with-tests --prefix="/usr" CC="$CC" CFLAGS="$CFLAGS" VALACFLAGS="$VALACFLAGS"
sed -i 's/try{/try{\n GLib.Environment.set_variable("GDK_DPI_SCALE", "1.5", false);/' main/src/main.vala
2018-01-06 01:12:52 -05:00
make
}
package() {
cd "${srcdir}/${pkgname%-git}"
make DESTDIR="${pkgdir}/" install
}
check() {
cd "${srcdir}/${pkgname%-git}"
echo "Executing xmpp-vala-test:"
build/xmpp-vala-test
}