diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/librcc | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/librcc')
-rw-r--r-- | community/librcc/PKGBUILD | 49 | ||||
-rw-r--r-- | community/librcc/librcc-strnlen.patch | 17 | ||||
-rw-r--r-- | community/librcc/librcc.install | 6 |
3 files changed, 72 insertions, 0 deletions
diff --git a/community/librcc/PKGBUILD b/community/librcc/PKGBUILD new file mode 100644 index 000000000..fa2df29fc --- /dev/null +++ b/community/librcc/PKGBUILD @@ -0,0 +1,49 @@ +# $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) +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) +md5sums=('9bbf248c7312c73c0b6ca19b9c5a2af1' + '040313d1d8f166ccf2b128cea4c05f21') + +build() { + cd $srcdir/$pkgname-${pkgver} + ./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 +} diff --git a/community/librcc/librcc-strnlen.patch b/community/librcc/librcc-strnlen.patch new file mode 100644 index 000000000..9fc0e8b0b --- /dev/null +++ b/community/librcc/librcc-strnlen.patch @@ -0,0 +1,17 @@ +diff -wbBur librcc-0.2.6/src/rccstring.h librcc-0.2.6.qwe/src/rccstring.h +--- librcc-0.2.6/src/rccstring.h 2006-01-08 15:42:59.000000000 +0000 ++++ librcc-0.2.6.qwe/src/rccstring.h 2009-09-28 08:45:37.000000000 +0000 +@@ -18,13 +18,6 @@ + int rccStringFixID(rcc_string string, rcc_context ctx); + int rccStringChangeID(rcc_string string, rcc_language_id language_id); + +-#ifdef HAVE_STRNLEN +-# ifndef strnlen +-int strnlen(const char *str, size_t size); +-# endif /* !strnlen */ +-#else +-int rccStrnlen(const char *str, size_t size); +-#endif /* HAVE_STRNLEN */ + int rccIsASCII(const char *str); + size_t rccStringSizedGetChars(const char *str, size_t size); + diff --git a/community/librcc/librcc.install b/community/librcc/librcc.install new file mode 100644 index 000000000..53b1d7ce7 --- /dev/null +++ b/community/librcc/librcc.install @@ -0,0 +1,6 @@ +post_install() { + echo "-- Don't forget to install gtk or/and gtk2 packages to enable librcc" + echo " gui features" + echo "-- Also you may change /usr/bin/rcc-config symlink to switch between" + echo " gtk and gtk2 (rcc-gtk-config and rcc-gtk2-config)" +} |