summaryrefslogtreecommitdiffstats
path: root/abs/extra/libgdiplus/PKGBUILD
blob: 59b451fd6437d144b5feaf0a687bfa6088ebaa63 (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
# $Id$
# Maintainer: Daniel Isenmann <daniel@archlinux.org>

pkgname=libgdiplus
pkgver=3.8
pkgrel=1
pkgdesc="An Open Source Implementation of the GDI+ API"
arch=(i686 x86_64)
license=('MPL' 'LGPL')
url="http://www.mono-project.com"
depends=('libtiff' 'cairo' 'giflib' 'glib2' 'libexif')
source=(http://download.mono-project.com/sources/${pkgname}/${pkgname}-${pkgver}.tar.gz
	libgdiplus0-giflib5.patch)
md5sums=('e75440257b006d7fc2c39e9c56022c4e'
         'a2db6fbb81b1367b3d45eaff674c00a5')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -Np1 -i ../libgdiplus0-giflib5.patch

  sed -i -e 's/-L\${libjpeg_prefix}\/lib -ljpeg/-ljpeg/' configure
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --with-cairo=system

  make
}

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