summaryrefslogtreecommitdiff
path: root/community/mget/PKGBUILD
blob: 458d0f83dc86b0b4125982a6ab95b08829d56b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 4928 2009-11-02 21:45:22Z ibiru $
# Maintainer: Alexander Fehr <pizzapunk gmail com>

pkgname=mget
pkgver=1.50
pkgrel=2
pkgdesc="Simple script allowing to download embedded movies from various video hosting services"
arch=('i686' 'x86_64' 'mips64el')
url="http://movie-get.org/"
license=('GPL2')
depends=('ruby' 'wget')
optdepends=('ffmpeg: for converting movies'
            'mplayer: for downloading mms streams')
source=(http://mget.googlecode.com/files/mget-$pkgver.tar.gz fix-warnings.patch)
md5sums=('d29bbef2f4536f8697ccabe782563624'
         '4dcb1eafc95a7893c9b0be0a4232b282')

build() {
  cd $srcdir/mget-$pkgver
  patch -Np1 -i $srcdir/fix-warnings.patch || return 1

  install -D -m755 mget.rb $pkgdir/usr/bin/mget
  mkdir -p $pkgdir/usr/lib/ruby/1.9.1/mget
  install -m644 lib/mget/*.rb $pkgdir/usr/lib/ruby/1.9.1/mget
  install -D -m644 docs/mget.1 $pkgdir/usr/share/man/man1/mget.1
}