updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ubuntuwintv / PKGBUILD
blob9c8e89de87399a2598f84d4c602b6e0e05e76b12
1 #Mainteiner dieghen89 <dieghen89@gmail.com>
3 pkgname=ubuntuwintv
4 pkgver=0.7.1
5 pkgrel=3
6 pkgdesc="An utility to see a lot of TV and radio channels in streaming, written in python"
7 arch=('i686' 'x86_64')
8 url="http://ubuntuwin.altervista.org"
9 depends=('python2' 'vlc' 'zenity' 'gtk2' 'python-wnck' 'python-xlib')
10 #depends=('python' 'vlc' 'zenity' 'gtk2' 'gnome-python-desktop' 'python-xlib')
11 license=('GPL')
12 source=(${pkgname}_all-${pkgver}-0ubuntu1.tar.gz
13         #http://ubuntuwin.altervista.org/fileadmin/user_upload/${pkgname}/all/${pkgname}_all-${pkgver}-0ubuntu1.tar.gz
14         ubuntuwintv.desktop)
15 md5sums=('6ca07e81bf5bed94fde89ff81a2e41ce'
16          'd2c1c4f2222d37f3c9cffa6a2def7a1b')
17 install=ubuntuwintv.install
19 build()
21 cd ${srcdir}/src/
22 sed -i -e "s:/usr/share/common-licenses/GPL-3:/usr/share/licenses/common/GPL3/license.txt:g" ubuntuwintv.py
23 sed -i -e "s|#!/usr/bin/python|#!/usr/bin/python2|g" ubuntuwintv.py
24 #sed -i -e "s:Categories=Utility;:Categories=GTK;AudioVideo;Video:g" ubuntuwintv.desktop
25 install -D -m755 ubuntuwintv.py "${pkgdir}/usr/bin/ubuntuwintv.py" || return 1
26 install -D -m644 ubuntuwintv.png "${pkgdir}/usr/share/icons/ubuntuwintv.png" || return 1
27 install -D -m644 ubuntuwintvlingua_it.txt "${pkgdir}/usr/share/ubuntuwintvlingua_it.txt" || return 1
28 install -D -m644 ../ubuntuwintv.desktop "${pkgdir}/usr/share/applications/ubuntuwintv.desktop" || return 
29 install -D -m644 ubuntuwintvlingua_en.txt "${pkgdir}/usr/share/ubuntuwintvlingua_en.txt" || return 1
30 #echo "Icon=/usr/share/icons/ubuntuwintv.png" >> ${pkgdir}/usr/share/applications/ubuntuwintv.desktop
31 # Install icons
32 cd icons
33 for i in *.png; do
34   install -D -m644 $i "${pkgdir}/usr/share/ubuntuwintv/$i" || return 1
35 done