diff options
Diffstat (limited to 'community/mget')
-rw-r--r-- | community/mget/PKGBUILD | 26 | ||||
-rw-r--r-- | community/mget/fix-warnings.patch | 40 |
2 files changed, 66 insertions, 0 deletions
diff --git a/community/mget/PKGBUILD b/community/mget/PKGBUILD new file mode 100644 index 000000000..fb960d5cd --- /dev/null +++ b/community/mget/PKGBUILD @@ -0,0 +1,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') +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 +} diff --git a/community/mget/fix-warnings.patch b/community/mget/fix-warnings.patch new file mode 100644 index 000000000..042f5e5b5 --- /dev/null +++ b/community/mget/fix-warnings.patch @@ -0,0 +1,40 @@ +diff -Nur mget-1.50.old/lib/mget/error_handling.rb mget-1.50/lib/mget/error_handling.rb +--- mget-1.50.old/lib/mget/error_handling.rb 2008-06-12 19:57:11.000000000 +0300 ++++ mget-1.50/lib/mget/error_handling.rb 2009-11-02 23:39:47.587497291 +0200 +@@ -48,7 +48,7 @@ + def setTrace(string) + if trace? + @log.info(string) +- end ++ end + end + + def logDir() +@@ -63,4 +63,4 @@ + Dir.mkdir(path) unless File.exists?(path) && File.directory?(path) + return path + end +-end +\ No newline at end of file ++end +diff -Nur mget-1.50.old/lib/mget/mget.rb mget-1.50/lib/mget/mget.rb +--- mget-1.50.old/lib/mget/mget.rb 2008-06-12 19:57:11.000000000 +0300 ++++ mget-1.50/lib/mget/mget.rb 2009-11-02 23:36:38.317512845 +0200 +@@ -111,7 +111,7 @@ + else + @target = target + end +- end ++ end + end + + def download=(flag) +@@ -158,7 +158,7 @@ + self.input=fileName # force self check again, but without validation + end + return +- end ++ end + setTrace("File.exists?="+fileName) + if File.exists? fileName + if File.zero? fileName |