2011-11-08 09:13:26 +08:00
|
|
|
#
|
|
|
|
# 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
|
2011-11-27 11:31:04 +08:00
|
|
|
pkgver=20111127
|
2011-11-08 09:13:26 +08:00
|
|
|
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
|
2011-11-27 11:31:04 +08:00
|
|
|
cd $_gitname && git pull origin
|
2011-11-08 09:13:26 +08:00
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
2011-11-27 11:31:04 +08:00
|
|
|
git clone $_gitroot $_gitname
|
2011-11-08 09:13:26 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
msg "Starting make..."
|
|
|
|
|
|
|
|
rm -rf "$srcdir/$_gitname-build"
|
2011-11-27 11:31:04 +08:00
|
|
|
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
2011-11-08 09:13:26 +08:00
|
|
|
cd "$srcdir/$_gitname-build"
|
|
|
|
|
2011-11-27 11:31:04 +08:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr .
|
2011-11-08 09:13:26 +08:00
|
|
|
make || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_gitname-build"
|
2011-11-27 11:31:04 +08:00
|
|
|
make DESTDIR="$pkgdir/" install
|
2011-11-08 09:13:26 +08:00
|
|
|
}
|