You are not logged in.

#1 2017-05-19 16:57:08

TyranT
Member
Registered: 2017-03-01
Posts: 67

[PKGBUILD Review] lib32-cairo-git

Prototype PKGBUILD. lib32-cairo is out of date (1.14.6 instead of 1.14.8).

# Maintainer:  Vincent Grande <shoober420>
# Contributor: Ivan Shapovalov <intelfx100@gmail.com>
# Contributor: dx <dx@dxzone.com.ar>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=lib32-cairo-git
epoch=1
pkgver=1.15.4.r21.g9d44136ef
pkgrel=1
pkgdesc="Cairo vector graphics library (git version)"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
url="http://cairographics.org/"
depends=('libpng' 'libxrender' 'libxext' 'lib32-fontconfig' 'pixman>=0.28.0' 'glib2' 'mesa' 'libgl' 'lzo')
makedepends=('mesa-libgl' 'librsvg' 'gtk2' 'poppler-glib' 'libspectre' 'gtk-doc' 'valgrind' 'git')
provides=("lib32-cairo=$pkgver" "lib32-cairo-xcb=$pkgver")
conflicts=('lib32-cairo' 'lib32-cairo-xcb')
source=('git://anongit.freedesktop.org/git/cairo')
sha1sums=('SKIP')

pkgver() {
	cd cairo
	git describe --long --tags | sed 's/-/.r/;s/-/./'
}

build() {
  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

	cd cairo
	./autogen.sh \
		--prefix=/usr \
                --libdir=/usr/lib32 \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--enable-tee \
		--enable-gl \
		--enable-egl \
		--enable-svg \
		--disable-ps \
		--disable-pdf \
		--enable-gobject \
		--enable-gtk-doc
  make
}

package(){
	cd cairo
	make DESTDIR="${pkgdir}" install
        rm -rf "${pkgdir}"/usr/{include,share,bin}
}

Offline

#2 2017-05-19 17:37:04

TyranT
Member
Registered: 2017-03-01
Posts: 67

Re: [PKGBUILD Review] lib32-cairo-git

Don't use this yet. I figured out PDF is needed. I'm going to have to make 32bit builds of poppler-glib and libspectre.

Last edited by TyranT (2017-05-19 17:37:47)

Offline

#3 2017-05-22 00:32:31

TyranT
Member
Registered: 2017-03-01
Posts: 67

Re: [PKGBUILD Review] lib32-cairo-git

So this package was a doozy. libspectre required ghostscript, so I had to build a 32bit version for that, and then cairo finally compiled. I've been very busy making PKGBUILDS for alot of out of date packages in the Arch repository. I'll soon post all of them. I've been compiling so many packages I might as well be using Gentoo lol

Last edited by TyranT (2017-05-22 00:37:28)

Offline

Board footer

Powered by FluxBB