updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / libircclient / PKGBUILD
blob45fcab1fc798edec43aa75efc03f030cc7f7a076
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Marcel Wysocki <maci@satgnu.net>
3 # Contributor: coolkehon <coolkehon at g m a i l>
5 pkgname=libircclient
6 pkgver=1.3
7 pkgrel=5
8 pkgdesc="A small but powerful library, which implements client-server IRC protocol."
9 arch=('i686' 'x86_64')
10 url="http://libircclient.sf.net"
11 depends=('glibc')
12 license=("GPL2")
13 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
14         "shared.patch")
15 md5sums=('b0e80d1d6b0c1cc61660fb9d2350b32d'
16          'f2c350d140bd522990c15162645c72f0')
18 build() {
19   cd "$srcdir/$pkgname-$pkgver"
21   # add fPIC flag for x86_64
22   [ "$CARCH" = x86_64 ] && export CFLAGS="$CFLAGS -fPIC"
24   # shared and path patch
25   patch -p1 -i ../shared.patch
27   ./configure --prefix=/usr
28   cd src && make CFLAGS="$CFLAGS"
31 package() {
32   cd "$srcdir/$pkgname-$pkgver/src"
34   make DESTDIR="$pkgdir/" install