diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/libircclient/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/libircclient/PKGBUILD')
-rw-r--r-- | community/libircclient/PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/community/libircclient/PKGBUILD b/community/libircclient/PKGBUILD new file mode 100644 index 000000000..cba8f34e7 --- /dev/null +++ b/community/libircclient/PKGBUILD @@ -0,0 +1,51 @@ +# $Id: PKGBUILD 93508 2013-07-04 20:56:31Z bpiotrowski $ +# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com> +# Maintainer: SpepS <dreamspepser at yahoo dot it> +# Contributor: Marcel Wysocki <maci@satgnu.net> +# Contributor: coolkehon <coolkehon at g m a i l> + +pkgname=libircclient +pkgver=1.7 +pkgrel=1 +pkgdesc='Small but powerful library, which implements client-server IRC protocol' +arch=('i686' 'x86_64') +url='http://www.ulduzsoft.com/libircclient/' +depends=('glibc') +makedepends=('python2-sphinx' 'python2-rst2pdf') +license=('GPL') +source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('968370276f7cf21302f504f9bce1fc99') + +build() { + cd $pkgname-$pkgver + + # add fPIC flag for x86_64 + [[ "$CARCH" = "x86_64" ]] && export CFLAGS="$CFLAGS -fPIC" + + sed -e "/install/s/lib/all/" \ + -e "/DESTDIR/s/\.a/\.so/g" \ + -e "s/@\/include/&\/$pkgname/" \ + -i src/Makefile.in + + ./configure --prefix=/usr \ + --libdir=/usr/lib \ + --enable-shared + cd src && make + + cd ../doc + sed -i 's/sphinx-build/sphinx-build2/g' Makefile + make singlehtml man +} + +package() { + cd $pkgname-$pkgver/src + make DESTDIR="$pkgdir" install + + install -d "$pkgdir"/usr/share/doc/$pkgname + cp -a ../doc/_build/singlehtml/* "$pkgdir"/usr/share/doc/$pkgname + cp -a ../doc/_build/man "$pkgdir"/usr/share + + install -d "$pkgdir"/usr/share/$pkgname/examples + install -Dm644 ../examples/* \ + "$pkgdir"/usr/share/$pkgname/examples +} |