mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# $Id: PKGBUILD 3694 2009-10-07 08:51:28Z 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)
|
|
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 {} \;
|
|
}
|