Created
April 9, 2013 19:27
-
-
Save lubosz/5348614 to your computer and use it in GitHub Desktop.
pitivi-git PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Kerrick Staley <mail@kerrickstaley.com> | |
# Contributor: Thomas Schneider <maxmusterm@gmail.com> | |
# Contributor: Abhishek Dasgupta <abhidg@gmail.com> | |
# Contributor: Gabor Nyekhelyi (n0gabor) <n0gabor@vipmail.hu> | |
# Contributor: Lubosz Sarnecki <lubosz@gmail.com> | |
pkgname=pitivi-git | |
pkgver=20121225 | |
pkgrel=1 | |
pkgdesc='PiTiVi allows users to easily edit audio/video projects based on the GStreamer framework (Git version)' | |
arch=('any') | |
license=('LGPL') | |
depends=('gstreamer' 'gst-plugins-base' 'gobject-introspection' 'python2' 'python2-gobject' 'goocanvas' 'gst-python2-git' 'gst-editing-services-git' 'gnonlin-git' 'python2-xdg' 'desktop-file-utils' 'hicolor-icon-theme') | |
makedepends=('automake' 'libtool' 'intltool' 'itstool' 'pygobject2-devel' 'gtk-doc' 'gnome-doc-utils') | |
install=pitivi-git.install | |
provides=('pitivi') | |
conflicts=('pitivi') | |
url='http://www.pitivi.org/' | |
_gitroot='git://git.gnome.org/pitivi' | |
_gitname='pitivi' | |
build() { | |
cd "$srcdir" | |
msg 'Connecting to GIT server...' | |
if [[ -d "$_gitname" ]]; then | |
(cd "$_gitname"; git pull origin) || return 1 | |
else | |
git clone --depth=1 "$_gitroot" "$_gitname" || return 1 | |
fi | |
cd "$_gitname" | |
if [[ ! -f common/gst-autogen.sh ]]; then | |
msg '+ Setting up common submodule' | |
git submodule init | |
fi | |
git submodule update || return 1 | |
msg 'GIT checkout done or server timeout' | |
msg 'Starting make...' | |
./autogen.sh --prefix=/usr || return 1 | |
make || return 1 | |
} | |
package() { | |
cd "$srcdir/$_gitname" | |
make DESTDIR="$pkgdir" install || return 1 | |
install -D -m644 data/pitivi.desktop "$pkgdir/usr/share/applications/pitivi.desktop" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment