public
anonymous / PKGBUILD
Created

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# 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
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.