Date: Thursday, July 4, 2013 @ 22:56:06 Author: bpiotrowski Revision: 93507
upgpkg: libircclient 1.7-1 - upstream release Modified: libircclient/trunk/PKGBUILD ----------+ PKGBUILD | 43 +++++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-07-04 20:28:31 UTC (rev 93506) +++ PKGBUILD 2013-07-04 20:56:06 UTC (rev 93507) @@ -5,52 +5,47 @@ # Contributor: coolkehon <coolkehon at g m a i l> pkgname=libircclient -pkgver=1.6 +pkgver=1.7 pkgrel=1 -pkgdesc="A small but powerful library, which implements client-server IRC protocol." +pkgdesc='Small but powerful library, which implements client-server IRC protocol' arch=('i686' 'x86_64') -url="http://www.ulduzsoft.com/libircclient/" +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=('eb6a2c4e91862cc10de3b13b198cfa23') +md5sums=('968370276f7cf21302f504f9bce1fc99') build() { - cd "$srcdir/$pkgname-$pkgver" + cd $pkgname-$pkgver # add fPIC flag for x86_64 - [ "$CARCH" = x86_64 ] && export CFLAGS="$CFLAGS -fPIC" + [[ "$CARCH" = "x86_64" ]] && export CFLAGS="$CFLAGS -fPIC" - ## 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 ./configure --prefix=/usr \ + --libdir=/usr/lib \ --enable-shared + cd src && make - cd src && make CFLAGS="$CFLAGS" + cd ../doc + sed -i 's/sphinx-build/sphinx-build2/g' Makefile + make singlehtml man } package() { - cd "$srcdir/$pkgname-$pkgver/src" + cd $pkgname-$pkgver/src + make DESTDIR="$pkgdir" install - 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 - # 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 -d "$pkgdir"/usr/share/$pkgname/examples install -Dm644 ../examples/* \ - "$pkgdir/usr/share/$pkgname/examples" + "$pkgdir"/usr/share/$pkgname/examples }