updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / otrdecoder / PKGBUILD
blob734e84359df670a14f6838bdf478093b2587242d
1 # Maintainer: nblock <nblock [/at\] archlinux DOT us>
2 # Contributor: buddabrod <buddabrod @ gmail.com>
3 # Contributor: Urs Wolfer <uwolfer @ fwo.ch>
5 pkgname=otrdecoder
6 pkgver=0.4.1132
7 pkgrel=6
8 pkgdesc="Decoder for .otrkey files from OnlineTvRecorder.com"
9 arch=('i686' 'x86_64')
10 url="http://www.onlinetvrecorder.com/"
11 license=('custom')
12 depends=('ffmpeg')
13 if [ "$CARCH" = "x86_64" ]; then
14   source=(http://onlinetvrecorder.com/downloads/otrdecoder-bin-${CARCH}-unknown-linux-gnu-${pkgver}.tar.bz2)
15   md5sums=('602638f318e5ee669cab17576d4a16b6')
16 else 
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')
22 build() {
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}
26   else 
27     cd ${srcdir}/otrdecoder-bin-linux-Ubuntu_8.04-${CARCH}-${pkgver}
28   fi
30   #enforce python2
31   sed -i -e 's|#!\s*/usr/bin/python[^\d.]*$|#!/usr/bin/python2|' ${pkgname}-gui
32   
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}/
41
43 # vim:set ts=2 sw=2 et: