updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / qttube / PKGBUILD
blob2f22d2785a26ff8baa15d6ec7eb4549e320609e5
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: Joerie de Gram <j.de.gram@gmail.com>
4 pkgname=qttube
5 pkgver=0.1
6 pkgrel=1
7 pkgdesc="A YouTube video downloader"
8 arch=('i686')
9 url="https://launchpad.net/qttube/"
10 license=('GPL')
11 depends=('hicolor-icon-theme' 'pyqt' 'youtube-dl>=2007.03.27')
12 install=qttube.install
13 source=(https://launchpad.net/$pkgname/0.x/$pkgver/+download/QtTube-$pkgver.tar.gz
14         setup.py)
15 md5sums=('b889040afa659f9a9bdfe24a1e3d2ac8'
16          'ad4ad733f999235b3b31a700582ccc34')
18 build() {
19   cd "$srcdir/QtTube"
20   sed -i '/Exec=/ s/$/.py/' data/$pkgname.desktop
21   ln -sf ../setup.py .
22   python setup.py build || return 1
25 package() {
26   cd "$srcdir/QtTube"
27   python setup.py install --prefix=/usr --root="$pkgdir"
28   for _res in 16x16 24x24 32x32 48x48; do
29     install -Dm644 data/$pkgname-$_res.png \
30       "$pkgdir/usr/share/icons/hicolor/$_res/apps/$pkgname.png"
31   done