mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
49 lines
1.1 KiB
Bash
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
|
|
} |