blob: 53428ee193809c306a5ac6941669f6b9070688d3 (
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
|
# $Id: PKGBUILD 99879 2013-10-31 02:14:43Z allan $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=librcc
pkgver=0.2.10
pkgrel=2
pkgdesc="Charset Conversion Library"
arch=(i686 x86_64)
url="http://rusxmms.sourceforge.net/"
license=('GPL')
depends=('aspell' 'enca' 'libxml2' 'librcd')
makedepends=('patch' 'gtk' 'gtk2')
install=librcc.install
source=(http://downloads.sourceforge.net/rusxmms/${pkgname}-${pkgver}.tar.bz2)
md5sums=('077260cf58ae9624c964652b79fbb5fb')
build() {
cd $srcdir/$pkgname-${pkgver}
./configure --prefix=/usr --disable-bdb
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
}
|