summaryrefslogtreecommitdiff
path: root/community/libircclient/PKGBUILD
blob: c99c3a579925cf62eabb0ca0ae95fd3c30236928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $Id: PKGBUILD 112170 2014-05-29 13:22:51Z speps $
# Maintainer:  speps <speps at aur dot archlinux dot org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Marcel Wysocki <maci@satgnu.net>
# Contributor: coolkehon <coolkehon at g m a i l>

pkgname=libircclient
pkgver=1.8
pkgrel=1
pkgdesc='Small but powerful library, which implements client-server IRC protocol'
arch=('i686' 'x86_64')
url='http://www.ulduzsoft.com/libircclient/'
license=('GPL')
depends=('glibc')
makedepends=('python2-sphinx' 'python2-rst2pdf') 
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('a1b4fd5491a36b8aedf65a6845755800')

prepare() {
  cd $pkgname-$pkgver/src

  # fix include dir path
  sed -i "s/@\/include/&\/$pkgname/" Makefile.in
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr \
              --libdir=/usr/lib \
              --enable-shared
  cd src && make

  cd ../doc
  make SPHINXBUILD=sphinx-build2 singlehtml man
}

package() {
  cd $pkgname-$pkgver/src
  make DESTDIR="$pkgdir" install

  # docs
  install -d "$pkgdir/usr/share/doc/$pkgname"
  cp -a ../doc/_build/singlehtml/* "$pkgdir/usr/share/doc/$pkgname"

  # man
  install -Dm644 ../doc/_build/man/$pkgname.1 \
    "$pkgdir/usr/share/man/man1/$pkgname.1"

  # examples
  install -d "$pkgdir/usr/share/$pkgname/examples"
  install -Dm644 ../examples/* \
    "$pkgdir"/usr/share/$pkgname/examples
}