summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d5fe6dbb8fcd94f69a2b7a1692b2a240844e751 (plain)
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
# Maintainer: Patrick Oppenlander <patrick.oppenlander@gmail.com>

pkgname=cairo-minimal
pkgver=1.16.0
pkgrel=1
pkgdesc="A vector graphics library - build with minimal dependencies"
url="https://cairographics.org/"
arch=(x86_64)
license=(LGPL MPL)
depends=(libpng fontconfig pixman glib2 lzo)
provides=(cairo)
replaces=(cairo)
source=(http://cairographics.org/releases/${pkgname:0:5}-$pkgver.tar.xz)

sha1sums=('00e81842ae5e81bb0343108884eb5205be0eac14')

build() {
  cd ${pkgname:0:5}-$pkgver

  ./configure --prefix=/usr \
	--sysconfdir=/etc \
	--localstatedir=/var \
	--disable-static \
	--disable-gl \
	--enable-tee \
	--enable-svg \
	--enable-ps \
	--enable-pdf \
	--enable-gobject
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  cd ${pkgname:0:5}-$pkgver
  make DESTDIR="$pkgdir" install
}