updated on Fri Jan 6 04:00:21 UTC 2012
[aur-mirror.git] / tunapie / PKGBUILD
blob2aa565af0bc0b19af2fd6bacda37e161cbb05751
1 # Maintainer: Dan Serban
2 # Contributor: grimi <grimi at poczta dot fm>
4 pkgname=tunapie
5 pkgver=2.1.18
6 pkgrel=3
7 pkgdesc="A directory browser for internet radio and TV streams"
8 arch=(any)
9 url=http://tunapie.sourceforge.net/
10 license=(GPLv2)
11 depends=(python2 wxpython)
12 source=("http://downloads.sourceforge.net/project/tunapie/tunapie/2.1/$pkgname-$pkgver.tar.gz")
13 md5sums=('391684c1f26be1b12ff356e00f8c61f5')
15 build()
17   cd $pkgname-$pkgver
18   rm tunapie
19   mv src/tplogo.xpm .
20   mkdir -p "$pkgdir/usr/share"
21   # Rename the app folder
22   mv src tunapie
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"