2012-01-22 16:13:35 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández <adriyetichaves@gmail.com>
|
|
|
|
# Contributor: Bartłomiej Piotrowski <barthalion@gmail.com>
|
|
|
|
# Contributor: SpepS <dreamspepser at yahoo dot it>
|
|
|
|
# Contributor: Marcel Wysocki <maci@satgnu.net>
|
|
|
|
# Contributor: coolkehon <coolkehon at g m a i l>
|
|
|
|
|
|
|
|
pkgname=libircclient
|
2012-02-22 20:13:31 +08:00
|
|
|
pkgver=1.6
|
|
|
|
pkgrel=1
|
2012-01-22 16:13:35 +08:00
|
|
|
pkgdesc="A small but powerful library, which implements client-server IRC protocol."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.ulduzsoft.com/libircclient/"
|
|
|
|
depends=('glibc')
|
|
|
|
license=('GPL')
|
2012-02-22 20:13:31 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
|
|
md5sums=('eb6a2c4e91862cc10de3b13b198cfa23')
|
2012-01-22 16:13:35 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
# Add fPIC flag for x86_64.
|
|
|
|
[ "$CARCH" = x86_64 ] && export CFLAGS="$CFLAGS -fPIC"
|
|
|
|
|
2012-02-22 20:13:31 +08:00
|
|
|
## Makefile.in fixes:
|
|
|
|
# invalid `lib` requisite for `install` target
|
|
|
|
# install shared lib instead of static
|
|
|
|
# headers in /usr/include/$pkgname
|
|
|
|
sed -e "/install/s/lib/all/" \
|
|
|
|
-e "/DESTDIR/s/\.a/\.so/g" \
|
|
|
|
-e "s/@\/include/&\/$pkgname/" \
|
|
|
|
-i src/Makefile.in
|
2012-01-22 16:13:35 +08:00
|
|
|
|
2012-02-22 20:13:31 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-shared
|
2012-01-22 16:13:35 +08:00
|
|
|
|
|
|
|
cd src && make CFLAGS="$CFLAGS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver/src"
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir/" install
|
2012-02-22 20:13:31 +08:00
|
|
|
# doc
|
|
|
|
install -d "$pkgdir/usr/share/doc/$pkgname"
|
|
|
|
cp -a ../doc/{html,rfc1459.txt} \
|
|
|
|
"$pkgdir/usr/share/doc/$pkgname"
|
|
|
|
|
|
|
|
# man
|
|
|
|
cp -a ../doc/man "$pkgdir/usr/share"
|
|
|
|
|
|
|
|
# examples (optional)
|
|
|
|
install -d "$pkgdir/usr/share/$pkgname/examples"
|
|
|
|
install -Dm644 ../examples/* \
|
|
|
|
"$pkgdir/usr/share/$pkgname/examples"
|
2012-01-23 00:31:30 +08:00
|
|
|
|
|
|
|
# Remove conflicting man pages (conflict with coin package).
|
|
|
|
rm $pkgdir/usr/share/man/man3/errors.3
|
|
|
|
rm $pkgdir/usr/share/man/man3/events.3
|
2012-01-22 16:13:35 +08:00
|
|
|
}
|