1 # Maintainer: nblock <nblock [/at\] archlinux DOT us>
2 # Contributor: buddabrod <buddabrod @ gmail.com>
3 # Contributor: Urs Wolfer <uwolfer @ fwo.ch>
8 pkgdesc="Decoder for .otrkey files from OnlineTvRecorder.com"
10 url="http://www.onlinetvrecorder.com/"
13 if [ "$CARCH" = "x86_64" ]; then
14 source=(http://onlinetvrecorder.com/downloads/otrdecoder-bin-${CARCH}-unknown-linux-gnu-${pkgver}.tar.bz2)
15 md5sums=('602638f318e5ee669cab17576d4a16b6')
17 source=(http://onlinetvrecorder.com/downloads/otrdecoder-bin-linux-Ubuntu_8.04-${CARCH}-${pkgver}.tar.bz2)
18 md5sums=('e81d4d959c76cc7634f9829d88525c40')
20 optdepends=('pygtk: Needed to run the GTK User Interface')
23 mkdir -p ${pkgdir}/usr/{bin,lib,share/locale/de/LC_MESSAGES,share/licenses/${pkgname}}
24 if [ "$CARCH" = "x86_64" ]; then
25 cd ${srcdir}/otrdecoder-bin-${CARCH}-unknown-linux-gnu-${pkgver}
27 cd ${srcdir}/otrdecoder-bin-linux-Ubuntu_8.04-${CARCH}-${pkgver}
31 sed -i -e 's|#!\s*/usr/bin/python[^\d.]*$|#!/usr/bin/python2|' ${pkgname}-gui
33 install -m755 otrdecoder ${pkgdir}/usr/bin/
34 install -m755 otrdecoder-gui ${pkgdir}/usr/bin/
35 install -m644 decoder.glade ${pkgdir}/usr/bin/
36 install -m644 libavutil.so.49 ${pkgdir}/usr/lib/
37 install -m644 libavformat.so.52 ${pkgdir}/usr/lib/
38 install -m644 libavcodec.so.52 ${pkgdir}/usr/lib/
39 install -m644 locale/de/LC_MESSAGES/otrdecoder.mo ${pkgdir}/usr/share/locale/de/LC_MESSAGES/
40 install -m644 copyright ${pkgdir}/usr/share/licenses/${pkgname}/
43 # vim:set ts=2 sw=2 et: