mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-11 03:34:38 +08:00
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# contributor: alex@eyeos.org, aleixpol@kde.org
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=kamoso-git
|
|
_pkgname=kamoso
|
|
pkgver=20111108
|
|
pkgrel=1
|
|
pkgdesc="Kamoso is an application to take pictures and videos out of your webcam."
|
|
url="https://projects.kde.org/projects/playground/multimedia/kamoso/"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
depends=('kde-workspace' 'qtgstreamer-git' 'kipi-plugins')
|
|
makedepends=('cmake' 'git' 'automoc4')
|
|
conflicts=('kamoso')
|
|
|
|
_gitroot='git://anongit.kde.org/kamoso'
|
|
_gitname='kamoso'
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
msg "Connecting to gitorious GIT server...."
|
|
if [ -d ${srcdir}/$_gitname ] ; then
|
|
cd $_gitname
|
|
git pull . master
|
|
git submodule update --init
|
|
msg "The local files are updated."
|
|
else
|
|
git clone git://anongit.kde.org/kamoso
|
|
cd $_gitname
|
|
git submodule update --init
|
|
fi
|
|
msg "GIT checkout done."
|
|
|
|
cd ..
|
|
if [ -d build ] ; then
|
|
rm -rf build
|
|
fi
|
|
mkdir build
|
|
cd build
|
|
cmake ${srcdir}/$_gitname \
|
|
-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
|
|
-DCMAKE_BUILD_TYPE=Release || return 1
|
|
make || return 1
|
|
make DESTDIR=$startdir/pkg install
|
|
} |