1 # Maintainer: Dan Serban
2 # Contributor: grimi <grimi at poczta dot fm>
7 pkgdesc="A directory browser for internet radio and TV streams"
9 url=http://tunapie.sourceforge.net/
11 depends=(python2 wxpython)
12 source=("http://downloads.sourceforge.net/project/tunapie/tunapie/2.1/$pkgname-$pkgver.tar.gz")
13 md5sums=('391684c1f26be1b12ff356e00f8c61f5')
20 mkdir -p "$pkgdir/usr/share"
21 # Rename the app folder
23 # Move it into the right spot
24 mv tunapie "$pkgdir/usr/share/"
25 install -Dm644 tunapie.1 "$pkgdir/usr/share/man/man1/tunapie.1"
26 install -Dm644 tunapie.desktop "$pkgdir/usr/share/applications/tunapie.desktop"
27 install -Dm644 tplogo.xpm "$pkgdir/usr/share/pixmaps/tplogo.xpm"
28 mkdir -p "$pkgdir/etc"
29 # config: 0 for adult tv off, 1 for on
30 echo 0 > "$pkgdir/etc/tunapie.config"
31 mkdir -p "$pkgdir/usr/bin"
32 echo "#!/bin/bash" > "$pkgdir/usr/bin/tunapie"
33 echo "cd /usr/share/tunapie" >> "$pkgdir/usr/bin/tunapie"
34 echo "python2 Tunapie.py" >> "$pkgdir/usr/bin/tunapie"
35 chmod +x "$pkgdir/usr/bin/tunapie"