blob: f796de9f309d5e50787ca2bbb759273fc4365429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $Id: PKGBUILD 3695 2009-10-07 08:53:45Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tuxbubling <tuxbubling)jabber.fr>
pkgname=xchat-systray-integration
pkgver=2.4.5
pkgrel=2
pkgdesc="Systray integration for xchat"
arch=(i686 x86_64 'mips64el')
url="http://www.blight.tk/"
license=("GPL")
depends=('xchat' 'gtk2')
makedepends=('gcc' 'gtk2' 'gdk-pixbuf')
source=(http://downloads.sourceforge.net/sourceforge/xchat2-plugins/$pkgname-$pkgver-src.tar.gz \
default-icons.patch \
segfault-fix.patch)
md5sums=('f7068053ff7cc63d5bf2fd8cfabe0c82'
'9f7924b9423d5dd78ca8832026c9bb8e'
'f9fec2befb2bf0b3888f017d37a36a17')
build() {
cd $startdir/src/$pkgname-$pkgver
patch -Np1 <$startdir/src/default-icons.patch
patch -Np1 <$startdir/src/segfault-fix.patch
if [ "$CARCH" == "x86_64" ] ; then
sed -re 's/-Wall/-fPIC -Wall/' -i Makefile
fi
make || return 1
mkdir -p $startdir/pkg/usr/lib/xchat/plugins/
cp $startdir/src/$pkgname-$pkgver/systray.so $startdir/pkg/usr/lib/xchat/plugins || return 1
mkdir -p $startdir/pkg/usr/share/xchat-systray-integration
cp -r src/images/{GTKTray,Menu} $startdir/pkg/usr/share/xchat-systray-integration || return 1
chmod 0644 $startdir/pkg/usr/share/xchat-systray-integration/{GTKTray,Menu}/* && \
find $pkgdir -type d -exec chmod 0755 {} \;
}
|