updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / utube-gtk / PKGBUILD
blob660f3cfb85492abd82ae53610237473ea51fee16
1 # Contributor: Elyess Zouaghi <elyess@zouaghi.net>
2 # Original: Tim Yang <tdy@gmx.com>
3 pkgname=utube-gtk
4 pkgver=1.7
5 pkgrel=1
6 pkgdesc="A graphical (GTK) downloader and ripper for YouTube videos"
7 arch=('i686' 'x86_64')
8 url=("http://sourceforge.net/projects/utube/")
9 license=('LGPL')
10 depends=('gambas2' 'wget')
11 optdepends=('ffmpeg: for FLV conversion')
12 source=(http://downloads.sourceforge.net/utube/utube-$pkgver.src.gtk.tar.gz
13         utube.desktop)
14 conflicts=('utube', 'utube-qt')
15 provides=('utube')
16 md5sums=('dd4b49abb8b99a7503e0d6cd56cf8ac9'
17          'e89af3e957dd7a07be3f7aaffa3920e6')
19 build() {
20   cd "$srcdir/utube-$pkgver"
21   sed -i 's#\./#/usr/share/utube/#' utube/UTube.sh
22   ./configure --prefix=/usr || return 1
23   make || return 1
24   install -Dm755 utube/UTube.sh "$pkgdir/usr/bin/utube"
25   install -Dm755 utube/utube.gambas "$pkgdir/usr/share/utube/utube.gambas"
26   install -Dm644 utube/dlcomplete.wav "$pkgdir/usr/share/utube/dlcomplete.wav"
27   install -Dm644 utube/utube.png "$pkgdir/usr/share/pixmaps/utube.png"
28   install -Dm644 ../utube.desktop "$pkgdir/usr/share/applications/utube.desktop"