updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / yami / PKGBUILD
blob6f7fc847b7c489e5ddc4bb5eb749bd828f3557b7
1 # Contributor: Michał Małek <michalm@jabster.pl>
3 pkgname=yami
4 pkgver=3.3.1
5 pkgrel=1
6 pkgdesc="Yet Another Messaging Infrastructure"
7 arch=(i686 x86_64)
8 url="http://www.msobczak.com/prog/yami/"
9 license=('custom')
10 depends=('python' 'tcl')
11 source=(http://www.msobczak.com/prog/${pkgname}/impl/files/${pkgname}-${pkgver}.tar.gz
12                 config.patch
13                 license.txt)
14 md5sums=('3a07fd7f305c94c5c0fc340c0ecbe720'
15          '6797710358c942b89a2671976d731ea7'
16          'ac064ef1a2ce435d76db881abb1cd951')
18 build() {
19         cd ${startdir}/src/${pkgname}-${pkgver}
21         patch -p0 < ${startdir}/src/config.patch || return 1
22         make || return 1
24         mkdir -p ${startdir}/pkg/usr/include
25         install -m644 include/*.h ${startdir}/pkg/usr/include/
27         mkdir -p ${startdir}/pkg/usr/lib
28         install -m644 lib/libyamic.a ${startdir}/pkg/usr/lib/
30         mkdir -p ${startdir}/pkg/usr/lib/tcl8.5/${pkgname}
31         install -m644 lib/pkgIndex.tcl ${startdir}/pkg/usr/lib/tcl8.5/${pkgname}/
32         install -m755 lib/yamitcl.so ${startdir}/pkg/usr/lib/tcl8.5/${pkgname}/
34         mkdir -p ${startdir}/pkg/usr/lib/python2.5
35         install -m644 lib/YAMI.py ${startdir}/pkg/usr/lib/python2.5/
36         install -m755 lib/yamipyc.so ${startdir}/pkg/usr/lib/python2.5/
38         mkdir -p ${startdir}/pkg/usr/bin
39         install -m755 tools/ydl/ydl ${startdir}/pkg/usr/bin/
40         install -m755 tools/yping/yping ${startdir}/pkg/usr/bin/
42         mkdir -p ${startdir}/pkg/usr/share/licenses/${pkgname}
43         install -m644 ${startdir}/src/license.txt ${startdir}/pkg/usr/share/licenses/${pkgname}/