desktop/qtgstreamer-git/PKGBUILD
2011-11-27 03:31:04 +00:00

49 lines
1.1 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor: Christopher Schwaab -- christopher.schwaab gmail
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=qtgstreamer-git
pkgver=20111127
pkgrel=1
pkgdesc="Gstreamer bindings for C++/Qt."
arch=('i686' 'x86_64')
url="http://gitorious.org/qtgstreamer"
license=('GPL')
depends=('gstreamer0.10-base' 'qt')
makedepends=('git' 'boost' 'doxygen' 'automoc4')
source=()
md5sums=()
_gitroot=git://anongit.freedesktop.org/gstreamer/qt-gstreamer
_gitname=qtgstreamer
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make || return 1
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir/" install
}