updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / ivysync / PKGBUILD
blob6abf11dfe463697890dcbab95fb067cd6a7bb6bb
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=ivysync
4 pkgver=0.5
5 pkgrel=1
6 pkgdesc="Provides synced playback of multiple videos on multiple screens."
7 arch=(i686 x86_64)
8 url="http://syncstarter.org/ivysync/"
9 license=('AGPL')
10 depends=('gtk2' 'python2')
11 source=("http://ftp.dyne.org/$pkgname/sources/$pkgname-$pkgver.tar.gz")
12 md5sums=('43fba34011801fd45d795bb35d557f54')
14 build() {
15   cd "$srcdir/$pkgname-$pkgver"
17   # adding missing header
18   sed -i '21a#include <stdio.h>' decoder.cpp
20   # openssl fix
21   sed -i 's/\( *\)\(SSL_METHOD\)/\1const \2/' xmlrpc++/XmlRpcSource.h
23   # build
24   echo 5 | ./compile.sh
27 package() {
28   cd "$srcdir/$pkgname-$pkgver"
30   # bin
31   install -d "$pkgdir/usr/bin"
32   find . -type f -executable \! -name "*.sh" -exec \
33   install -Dm755 {} "$pkgdir/usr/bin" \;
35   # doc
36   install -d "$pkgdir/usr/share/doc/$pkgname"
37   install -Dm644 README *.odt "$pkgdir/usr/share/doc/$pkgname"
39   # python2 fix
40   sed -i "s/bin\/python/&2/" "$pkgdir/usr/bin/ivysync-remote.py"
43 # vim:set ts=2 sw=2 et: