diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-01-25 12:01:49 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-01-25 12:01:49 +0100 |
commit | 8e40bdbb2496be15fdba2e683af427bc2333be42 (patch) | |
tree | 03ace0b9a2ffc12133cb0357fee75079c964f67a /community/libircclient | |
parent | 33fcf0e7b95e530b849e59e90fdea4001e01283d (diff) | |
parent | 2aa2acfff38de7de825868995e49792ecfc03126 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/libvisual-projectm/PKGBUILD
community/python-memcached/PKGBUILD
community/python-mpi4py/PKGBUILD
core/sqlite3/PKGBUILD
core/udev/PKGBUILD
extra/kdeplasma-applets-networkmanagement/PKGBUILD
extra/pixman/PKGBUILD
extra/sg3_utils/PKGBUILD
libre/kdeutils-libre/PKGBUILD
libre/linux-libre/PKGBUILD
libre/linux-libre/linux-libre.install
multilib/lib32-libxcb/PKGBUILD
multilib/lib32-openssl/PKGBUILD
multilib/lib32-sdl_image/PKGBUILD
multilib/lib32-sqlite3/PKGBUILD
multilib/lib32-udev/PKGBUILD
Diffstat (limited to 'community/libircclient')
-rw-r--r-- | community/libircclient/PKGBUILD | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/community/libircclient/PKGBUILD b/community/libircclient/PKGBUILD index 50e1c02a8..72a698e73 100644 --- a/community/libircclient/PKGBUILD +++ b/community/libircclient/PKGBUILD @@ -1,20 +1,18 @@ # Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com> -# Contributor: SpepS <dreamspepser at yahoo dot it> +# 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.3 -pkgrel=5 +pkgver=1.6 +pkgrel=1 pkgdesc="A small but powerful library, which implements client-server IRC protocol." arch=('i686' 'x86_64') -url="http://libircclient.sf.net" +url="http://www.ulduzsoft.com/libircclient/" depends=('glibc') -license=("GPL2") -source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" - "shared.patch") -md5sums=('b0e80d1d6b0c1cc61660fb9d2350b32d' - 'f2c350d140bd522990c15162645c72f0') +license=('GPL') +source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('eb6a2c4e91862cc10de3b13b198cfa23') build() { cd "$srcdir/$pkgname-$pkgver" @@ -22,15 +20,36 @@ build() { # add fPIC flag for x86_64 [ "$CARCH" = x86_64 ] && export CFLAGS="$CFLAGS -fPIC" - # shared and path patch - patch -p1 -i ../shared.patch + ## 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 - cd src && make CFLAGS="$CFLAGS" + ./configure --prefix=/usr \ + --enable-shared + + cd src && make CFLAGS="$CFLAGS" } package() { cd "$srcdir/$pkgname-$pkgver/src" make DESTDIR="$pkgdir/" install + + # 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" } |