blob: 9867f87bd16d497ee82017faddb6bd64a9a3d87e (
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
54
55
56
57
58
59
60
61
|
# Maintainer: Shengyu Zhang <lastavengers@outlook.com>
# Contributor: 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-pc
_pkgname=libircclient
pkgver=1.8
pkgrel=3
pkgdesc='Small but powerful library, which implements client-server IRC protocol, with pkg-config support'
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"
"https://gist.githubusercontent.com/LastAvenger/af72b0fe71ed80dfb4fa87d74805abe0/raw/bc4193535c1fac4f6793c0adade8ad96368e051a/libircclient.pc"
)
md5sums=('a1b4fd5491a36b8aedf65a6845755800'
'ba7704bee34d891d7b0cdad3c2973fa9'
)
conflicts=('libircclient')
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() {
install -Dm644 $_pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$_pkgname.pc
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
}
|