Commit 477bbc15 authored by Manuel Tortosa's avatar Manuel Tortosa

Add kamoso

parent 929bc651
#Mantainer: Manuel Tortosa <manutortosa@gmail.org>
pkgname=kamoso
pkgver=1.0.5
pkgrel=1
pkgdesc="An application to take pictures and videos out of your webcam"
arch=('i686' 'x86_64')
url="http://kde-apps.org/content/show.php/Kamoso?content=111750"
license=('GPL')
depends=('kdebase-workspace' 'vlc')
makedepends=('cmake' 'automoc4')
conflicts=('kamoso-git')
options=()
source=(http://kde-apps.org/CONTENT/content-files/111750-kamoso-$pkgver.tar.bz2 $pkgname-$pkgver.patch)
md5sums=('63fd81fca74eb105fb8c77415a69a475'
'f49cfd84ef32b1e7e486f7667a3b8bc0')
build() {
cd $srcdir/kamoso/src
patch -p0 < $srcdir/$pkgname-$pkgver.patch || return 1
cd $srcdir/$pkgname
cmake ../$pkgname -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make || return 1
make DESTDIR="$pkgdir/" install
}
\ No newline at end of file
--- countdownwidget.cpp 2009-10-21 12:41:38.000000000 +0200
+++ countdownwidget.cpp 2010-03-18 17:53:59.000000000 +0100
@@ -63,11 +63,11 @@
const int margin=5;
int rad=height()/2-margin;
- int dist=(width()-rad*colorCount)/(colorCount-1);
+ int dist=(width()-rad*colorCount())/(colorCount()-1);
- int current=int(mProgress*colorCount);
+ int current=int(mProgress*colorCount());
- for(int i=0; i<colorCount; i++) {
+ for(int i=0; i<colorCount(); i++) {
QColor color=colors[i];
if(i>=current)
color=color.dark(125);
@@ -83,7 +83,7 @@
painter.setPen(color);
painter.setBrush(color);
- double progUnit=1./colorCount;
+ double progUnit=1./colorCount();
double prog=(mProgress-i*progUnit)/progUnit;
painter.drawEllipse(tl, rad*prog, rad*prog);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment