Skip to content

Instantly share code, notes, and snippets.

Created August 23, 2011 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1166329 to your computer and use it in GitHub Desktop.
Save anonymous/1166329 to your computer and use it in GitHub Desktop.
# Contributor: mariusz - myswiat <my.swiat@o2.pl>
# Contributor: Carlos Franke <carlos_franke at lemtank dot de>
pkgname=pango-git
pkgver=20110823
pkgrel=1
pkgdesc="A library for layout and rendering of text"
arch=('i686' 'x86_64')
url="http://gnome.org/"
license=('LGPL')
makedepends=('git')
depends=('glib2' 'cairo')
provides=('pango')
conflicts=('pango')
_gitroot="http://git.gnome.org/browse/pango"
_gitname="pango"
build() {
cd $srcdir
msg "Connecting to git.gnome.org GIT server...."
if [ -d $srcdir/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
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
msg "Starting build"
./autogen.sh --prefix=/usr
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR=$pkgdir install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment