diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-09 16:37:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-09 16:37:58 +0000 |
commit | 235ba2b3a865227ff7252005fbf5ca0686949edb (patch) | |
tree | 5829f50b6db620c9de07a8830b85a8ab25064d47 /community/pidgin | |
parent | 3ff924bc66188d92b65b4d13eb754e3f18d507ff (diff) | |
download | aports-235ba2b3a865227ff7252005fbf5ca0686949edb.tar.bz2 aports-235ba2b3a865227ff7252005fbf5ca0686949edb.tar.xz |
{main => community/pidgin-*: move
Diffstat (limited to 'community/pidgin')
-rw-r--r-- | community/pidgin/APKBUILD | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/community/pidgin/APKBUILD b/community/pidgin/APKBUILD new file mode 100644 index 0000000000..3bce07f864 --- /dev/null +++ b/community/pidgin/APKBUILD @@ -0,0 +1,95 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=pidgin +pkgver=2.13.0 +pkgrel=0 +pkgdesc="Graphical, multi-protocol instant messaging client" +url="http://pidgin.im" +arch="all" +license="GPL-2.0-or-later" +depends= +makedepends="gtk+-dev intltool libsm-dev startup-notification-dev gtkspell-dev + libxml2-dev libidn-dev gnutls-dev avahi-dev + cyrus-sasl-dev ncurses-dev nss-dev + " +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang + libpurple-bonjour:_bonjour + libpurple-oscar:_oscar + libpurple-xmpp:_xmpp + finch libpurple + " +source="https://bitbucket.org/pidgin/main/downloads/$pkgname-$pkgver.tar.bz2" +options="!check" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-avahi \ + --disable-dbus \ + --disable-doxygen \ + --disable-gnutls \ + --disable-meanwhile \ + --disable-nm \ + --disable-perl \ + --disable-schemas-install \ + --disable-screensaver \ + --disable-tcl \ + --disable-vv \ + --disable-gstreamer \ + --disable-gstreamer-interfaces \ + --disable-farstream \ + --enable-cyrus-sasl \ + --enable-nss + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +finch() { + pkgdesc="text-based multi-protocol instant messaging client" + mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/lib/gnt "$pkgdir"/usr/lib/libgnt.so.* \ + "$pkgdir"/usr/lib/finch \ + "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/bin/finch "$subpkgdir"/usr/bin/ +} + +libpurple() { + pkgdesc="multi-protocol instant messaging library" + mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share/sounds + mv "$pkgdir"/usr/lib/*purple* "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/share/purple "$pkgdir"/usr/share/sounds \ + "$subpkgdir"/usr/share/ +} + +_mv_purple() { + pkgdesc="$1" + shift + mkdir -p "$subpkgdir"/usr/lib/purple-2/ + local i + for i; do + mv "$pkgdir"/usr/lib/purple-2/${i}.* \ + "$subpkgdir"/usr/lib/purple-2/ + done +} + +_bonjour() { + _mv_purple "bonjour plugin for libpurple" libbonjour +} + +_oscar() { + _mv_purple "AIM, ICQ plugins for libpurple" liboscar libaim libicq +} + +_xmpp() { + _mv_purple "Jabber/XMPP plugins for libpurple" libxmpp libjabber +} + +sha512sums="68b3d1eefee111544c7eb347386d0aea4f47c3e320d5963a4e0d833ed6af7b1be243a7bcd6a38c9234b58601d10a9aebf8541f1d97decfeca754fa78dc693047 pidgin-2.13.0.tar.bz2" |