diff options
author | root <root@rshg054.dnsready.net> | 2013-08-02 01:31:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-02 01:31:32 -0700 |
commit | f7cd2a0a073da2373cd3f3c8e31515dd0b83b645 (patch) | |
tree | e28c5c379825afaf02a927a8f1d1b1fcb94c2362 /community/ekg2 | |
parent | 70ec180b1cca6eda5576597c2bfff9171f7815bf (diff) |
Fri Aug 2 01:30:56 PDT 2013
Diffstat (limited to 'community/ekg2')
-rw-r--r-- | community/ekg2/PKGBUILD | 57 | ||||
-rw-r--r-- | community/ekg2/ekg2-0.3.1-giflib5.patch | 12 |
2 files changed, 44 insertions, 25 deletions
diff --git a/community/ekg2/PKGBUILD b/community/ekg2/PKGBUILD index 7aa172028..fa0022592 100644 --- a/community/ekg2/PKGBUILD +++ b/community/ekg2/PKGBUILD @@ -1,44 +1,51 @@ -# $Id: PKGBUILD 91649 2013-05-26 09:24:30Z bluewind $ +# $Id: PKGBUILD 94920 2013-08-01 07:01:09Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Contributor: Mateusz Herych <heniekk@gmail.com> pkgname=ekg2 pkgver=0.3.1 -pkgrel=6 -pkgdesc="ncurses based Jabber, Gadu-Gadu, Tlen and IRC client" +pkgrel=7 +pkgdesc='Ncurses based Jabber, Gadu-Gadu, Tlen and IRC client' arch=('i686' 'x86_64') url="http://ekg2.org/" license=('GPL') depends=('aspell' 'libjpeg' 'python2' 'libgadu' 'gnutls' 'gpm' 'libidn' 'giflib') optdepends=('xosd: xosd support' - 'sqlite: sqlite support' - 'gtk2: gtk support') -source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('68fc05b432c34622df6561eaabef5a40') + 'sqlite: sqlite support' + 'gtk2: gtk support') +source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.gz + ekg2-0.3.1-giflib5.patch) +md5sums=('68fc05b432c34622df6561eaabef5a40' + 'f3b6979e9b8705b0b9c7efd3f3a808fd') + +prepare() { + cd $pkgname-$pkgver + sed -i 's|ncursesw/ncurses.h|ncurses.h|g' configure plugins/ncurses/ecurses.h + patch -Np1 -i ../ekg2-0.3.1-giflib5.patch +} build() { - cd "$srcdir/$pkgname-$pkgver" + cd $pkgname-$pkgver - sed -i 's|ncursesw/ncurses.h|ncurses.h|g' configure plugins/ncurses/ecurses.h - export PYTHON=/usr/bin/python2 #EKG2 isn't python3 friendly + export PYTHON=/usr/bin/python2 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/ekg2 \ + --with-libgadu \ + --with-xosd \ + --enable-unicode \ + --enable-shared \ + --without-gpg \ - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --libexecdir=/usr/lib/ekg2 \ - --with-libgadu \ - --with-xosd \ - --enable-unicode \ - --enable-shared \ - --without-gpg - make + make } package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install - rm -rf "$pkgdir"/usr/lib/perl5/core_perl/perllocal.pod - rm -rf "$pkgdir"/usr/libexec - chmod -R 755 "$pkgdir"/usr/lib/perl5 - chmod +s "$pkgdir"/usr/lib/ekg2/ioctld + rm -rf "$pkgdir"/usr/lib/perl5/core_perl/perllocal.pod + rm -rf "$pkgdir"/usr/libexec + chmod -R 755 "$pkgdir"/usr/lib/perl5 + chmod +s "$pkgdir"/usr/lib/ekg2/ioctld } diff --git a/community/ekg2/ekg2-0.3.1-giflib5.patch b/community/ekg2/ekg2-0.3.1-giflib5.patch new file mode 100644 index 000000000..f0e6885c0 --- /dev/null +++ b/community/ekg2/ekg2-0.3.1-giflib5.patch @@ -0,0 +1,12 @@ +diff -rupN a/plugins/gg/commands.c b/plugins/gg/commands.c +--- a/plugins/gg/commands.c 2011-03-17 18:08:11.000000000 +0100 ++++ b/plugins/gg/commands.c 2013-07-29 18:45:51.296790942 +0200 +@@ -1034,7 +1034,7 @@ static int token_gif_load (char *fname, + goto err; + } + +- if (!(file = DGifOpenFileHandle(fd))) { ++ if (!(file = DGifOpenFileHandle(fd, NULL))) { + snprintf(errbuf, sizeof(errbuf), "DGifOpenFileHandle(): %d", + GifLastError()); + goto err2; |