blob: 702a69f29166a9432bcb62f7f7b35c27551fdf66 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $Id: PKGBUILD 83682 2013-02-04 11:06:09Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=librcc
pkgver=0.2.6
pkgrel=5
pkgdesc="Charset Conversion Library"
arch=(i686 x86_64 'mips64el')
url="http://rusxmms.sourceforge.net/"
license=('GPL')
depends=(aspell enca libxml2 db librcd)
makedepends=(patch gtk gtk2)
install=librcc.install
options=('!libtool')
source=(http://downloads.sourceforge.net/rusxmms/${pkgname}-${pkgver}.tar.bz2
librcc-strnlen.patch
librcc-0.2.6-glib.patch)
md5sums=('9bbf248c7312c73c0b6ca19b9c5a2af1'
'040313d1d8f166ccf2b128cea4c05f21'
'214aef7764131252620892b56c09de9d')
build() {
cd $srcdir/$pkgname-${pkgver}
patch -Np1 -i ${srcdir}/librcc-0.2.6-glib.patch
./configure --prefix=/usr
patch -p1 <$srcdir/librcc-strnlen.patch
make
}
package() {
cd $srcdir/$pkgname-${pkgver}
mkdir -p $pkgdir/etc/rcc
mkdir -p $pkgdir/usr/lib/rcc/engines
mkdir -p $pkgdir/usr/bin
make DESTDIR=$pkgdir install
make -C examples
make -C examples install DESTDIR=$pkgdir
rm -f $pkgdir/usr/bin/example*
install -m 644 examples/rcc.xml $pkgdir/etc
if [ -f $pkgdir/usr/bin/rcc-gtk2-config ]; then
ln -s rcc-gtk2-config $pkgdir/usr/bin/rcc-config
elif [ -f $pkgdir/usr/bin/rcc-gtk-config ]; then
ln -s rcc-gtk-config $pkgdir/usr/bin/rcc-config
else
echo "#!/bin/bash" > $pkgdir/usr/bin/rcc-config
echo "echo \"Configuration UI is not available!\"" >> $pkgdir/usr/bin/rcc-config
fi
}
|