mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-24 01:42:13 +08:00
Add pidgin
This commit is contained in:
parent
e0f0094737
commit
8df6115116
58
pidgin/PKGBUILD
Normal file
58
pidgin/PKGBUILD
Normal file
@ -0,0 +1,58 @@
|
||||
pkgname=('pidgin')
|
||||
pkgver=2.10.7
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
pkgdesc="Multi-protocol instant messaging client"
|
||||
url="http://pidgin.im/"
|
||||
license=('GPL')
|
||||
depends=('libpurple' 'startup-notification' 'gtkspell' 'libxss' 'libsm'
|
||||
'hicolor-icon-theme' 'filesystem-extra')
|
||||
makedepends=('nss' 'libsasl' 'libidn' 'python2' 'farstream' 'avahi'
|
||||
'tk' 'ca-certificates' 'intltool' 'networkmanager')
|
||||
optdepends=('aspell: for spelling correction')
|
||||
options=('!libtool')
|
||||
install=pidgin.install
|
||||
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
|
||||
pidgin-2.10.7-link-libirc-to-libsasl2.patch)
|
||||
sha256sums=('eba32994eca20d1cf24a4261b059b2de71a1ec2dd0926e904074b0db49f7f192'
|
||||
'063723d5dc5726c43137b4b383c9d07c2c008391f6a626faaf6cedd31a2f1e8f')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
# https://developer.pidgin.im/ticket/15517
|
||||
patch -Np1 -i "$srcdir/pidgin-2.10.7-link-libirc-to-libsasl2.patch"
|
||||
autoreconf -vi
|
||||
|
||||
# Use Python 2
|
||||
sed -i 's/env python$/&2/' */plugins/*.py \
|
||||
libpurple/purple-{remote,notifications-example,url-handler}
|
||||
|
||||
./configure \
|
||||
--prefix=/extra/usr \
|
||||
--sysconfdir=/extra/etc \
|
||||
--disable-schemas-install \
|
||||
--disable-meanwhile \
|
||||
--disable-gnutls \
|
||||
--enable-cyrus-sasl \
|
||||
--disable-doxygen \
|
||||
--enable-nm \
|
||||
--with-python=/usr/bin/python2 \
|
||||
--with-system-ssl-certs=/etc/ssl/certs
|
||||
make
|
||||
}
|
||||
|
||||
package(){
|
||||
cd "$srcdir/pidgin-$pkgver"
|
||||
|
||||
# For linking
|
||||
make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES
|
||||
|
||||
make -C pidgin DESTDIR="$pkgdir" install
|
||||
make -C doc DESTDIR="$pkgdir" install
|
||||
|
||||
# Remove files that are packaged in libpurle
|
||||
make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES
|
||||
|
||||
install -Dm644 pidgin.desktop "$pkgdir"/extra/usr/share/applications/pidgin.desktop
|
||||
}
|
12
pidgin/pidgin-2.10.7-link-libirc-to-libsasl2.patch
Normal file
12
pidgin/pidgin-2.10.7-link-libirc-to-libsasl2.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -upr pidgin-2.10.7.orig/libpurple/protocols/irc/Makefile.am pidgin-2.10.7/libpurple/protocols/irc/Makefile.am
|
||||
--- pidgin-2.10.7.orig/libpurple/protocols/irc/Makefile.am 2013-02-14 02:44:47.000000000 +0200
|
||||
+++ pidgin-2.10.7/libpurple/protocols/irc/Makefile.am 2013-02-14 02:49:58.000000000 +0200
|
||||
@@ -27,7 +27,7 @@ else
|
||||
st =
|
||||
pkg_LTLIBRARIES = libirc.la
|
||||
libirc_la_SOURCES = $(IRCSOURCES)
|
||||
-libirc_la_LIBADD = $(GLIB_LIBS)
|
||||
+libirc_la_LIBADD = $(GLIB_LIBS) $(SASL_LIBS)
|
||||
|
||||
endif
|
||||
|
12
pidgin/pidgin.install
Normal file
12
pidgin/pidgin.install
Normal file
@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
|
||||
chakra-update-sycoca
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in New Issue
Block a user