diff --git a/kplayer.rb b/kplayer.rb new file mode 100755 index 0000000..e32e69f --- /dev/null +++ b/kplayer.rb @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +NAME = "kplayer" +COMPONENT = "extragear" +SECTION = "multimedia" + +$srcvcs = "git" + +def custom +end + +#require_relative 'lib/starter' +require File.join(File.dirname(__FILE__), 'lib/starter') diff --git a/kplayerrc b/kplayerrc new file mode 100644 index 0000000..a7a5233 --- /dev/null +++ b/kplayerrc @@ -0,0 +1,7 @@ +[main] +customsrc=git@git.kde.org:kplayer +doc=ture +l10n=true +protocol=anonsvn +branch=trunk +version=0.7.1 diff --git a/phonon-backend-vlc.rb b/phonon-backend-vlc.rb index 58a880f..547f52b 100755 --- a/phonon-backend-vlc.rb +++ b/phonon-backend-vlc.rb @@ -1,53 +1,37 @@ #!/usr/bin/env ruby # # Generates a release tarball # # Copyright © 2010 Harald Sitter # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License or (at your option) version 3 or any later version # accepted by the membership of KDE e.V. (or its successor approved # by the membership of KDE e.V.), which shall act as a proxy # defined in Section 14 of version 3 of the license. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . NAME = "phonon-backend-vlc" COMPONENT = "" SECTION = "" $: << File.dirname( __FILE__) $srcvcs = "git" def custom() src_dir() - file = File.new( "vlc/backend.cpp", File::RDWR ) - str = file.read() - file.rewind() - file.truncate( 0 ) - str.sub!(/setProperty\(\"backendVersion\", QLatin1String\(\".*\"\)\);/, "setProperty(\"backendVersion\", QLatin1String(\"#{@version}\"));") - file << str - file.close() - - file = File.new( "vlc/vlc.desktop", File::RDWR ) - str = file.read() - file.rewind() - file.truncate( 0 ) - str.sub!(/X-KDE-PhononBackendInfo-Version=.*/, "X-KDE-PhononBackendInfo-Version=#{@version}") - file << str - file.close() - base_dir() end # get things started require 'lib/starter'