You are not logged in.

#1 2008-12-10 15:10:16

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

[PKGBUILD] cairo-git

I adopted this package recently since I needed the the memory leak fixes in cairo-git which fix leaks in awesome-git and it looks like there is some improvement. It is my first pkgbuild though. Im wondering if any awesome-git users who should have this leak can also test this with me.
cairo-git

# Contributor: ST.x <seynthan DOT tx AT gmail DOT com>

pkgname=cairo-git
_realname=cairo
pkgver=20081211
pkgrel=1
pkgdesc="Cairo vector graphics library"
license="GPL"
arch=(i686 x86_64)
options=('!libtool')
url="http://cairographics.org/"
depends=('libpng>=1.2.33' 'libxrender' 'fontconfig>=2.6.0' 'pixman>=0.12.0' 'xcb-util>=0.3.1')
makedepends=('git' 'autoconf' 'automake' 'libtool' 'pkgconfig')
provides=('cairo=1.8.4')
conflicts=("$_realname")
replaces=('cairo-cvs')
source=()
md5sums=()

_gitroot="git://anongit.freedesktop.org/git/cairo"
_gitname="cairo"

build() {
  cd $startdir/src
  msg "Connecting to git.cairographics.org GIT server...."

  if [ -d $startdir/src/$_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..."

  cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
  cd $startdir/src/$_gitname-build

  #sed -i -e "s:1.7:1.10:g" configure.in 
  ./autogen.sh --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --enable-xcb --disable-static || return 1
  make || return 1
  make DESTDIR=${startdir}/pkg install

  rm -rf ${startdir}/pkg/usr/share/gtk-doc
  rm -rf ${startdir}/src/${_gitname}-build

}

Last edited by ST.x (2008-12-10 15:17:58)

Offline

#2 2008-12-10 21:20:09

aboe
Member
From: Netherlands
Registered: 2006-10-23
Posts: 16

Re: [PKGBUILD] cairo-git

maybe it is a good thing too build pixman from git first:

http://aur.archlinux.org/packages.php?ID=22133

# Contributor: aboe76 AT gmail DOT com>

pkgname=pixman-git
_realname=pixman
pkgver=20081210
pkgrel=1
pkgdesc="Pixman library"
license="GPL"
arch=(i686 x86_64)
options=('!libtool')
url="http://xorg.freedesktop.org"
depends=('glibc')
makedepends=('git' 'autoconf' 'automake' 'libtool' 'pkgconfig')
provides=('pixman=0.12.0')
conflicts=("$_realname")
replaces=('pixman-cvs')
source=()
md5sums=()

_gitroot="git://anongit.freedesktop.org/git/pixman"
_gitname="pixman"

build() {
  cd $startdir/src
  msg "Connecting to git.cairographics.org GIT server...."

  if [ -d $startdir/src/$_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..."

  cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
  cd $startdir/src/$_gitname-build

  #sed -i -e "s:1.7:1.10:g" configure.in 
  ./autogen.sh --prefix=/usr --disable-static || return 1
  make || return 1
  make DESTDIR=${startdir}/pkg install

  rm -rf ${startdir}/pkg/usr/share/gtk-doc
  rm -rf ${startdir}/src/${_gitname}-build

}

Last edited by aboe (2008-12-10 21:24:38)

Offline

#3 2008-12-11 02:31:41

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: [PKGBUILD] cairo-git

Alright im using that as well now, thanks.

Offline

#4 2008-12-17 10:33:16

lagenar
Member
Registered: 2008-11-29
Posts: 2

Re: [PKGBUILD] cairo-git

Thanks for the PKGBUILD! seems that cairo-git fixes the leak issue.

Offline

#5 2008-12-21 17:13:57

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: [PKGBUILD] cairo-git

Also an awesome-git user.  Cudos on the cairo-git pkg, I had considered doing the same.  Glad someone less lazy than me did it. 
Both pkgs seem to work well.


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#6 2008-12-21 18:48:15

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: [PKGBUILD] cairo-git

The recent Cairo 1.8.6 release is also fine to use it seems as the fix from git should be in there. I'll continue to keep this package in case it's needed later.

Offline

Board footer

Powered by FluxBB