summaryrefslogtreecommitdiff
path: root/community-testing/libmatchbox/PKGBUILD
blob: 3add96f1ebf01461750e840c2037c5be313f7110 (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
# $Id: PKGBUILD 63186 2012-01-30 19:01:39Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Henrique C. Alves <hcarvalhoalves@gmail.com>

pkgname=libmatchbox
pkgver=1.9
pkgrel=5
pkgdesc="Base library for Matchbox WM"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('pango' 'libpng' 'libjpeg>=7' 'xsettings-client' 'libxext')
options=('!libtool')
url="http://matchbox-project.org/"
source=(http://matchbox-project.org/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2
	libpng15.patch)
md5sums=('9f73e7515cc4679171a5db180dc1343b'
         '09f782c76fe313efd0e87fabb276e2fe')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's|png_check_sig( header, 8 )|png_sig_cmp( header, 0, 8 ) == 0|' libmb/mbpixbuf.c
  patch -Rp1 <$srcdir/libpng15.patch
  LDFLAGS="-lX11" ./configure --prefix=/usr --enable-pango --enable-jpeg --enable-xsettings
  make
  make DESTDIR="$pkgdir" install
}