summaryrefslogtreecommitdiff
path: root/extra/pixman/PKGBUILD
blob: 7d206a3fa8849d75f78dc905def053a1702a8f34 (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
38
39
40
# $Id: PKGBUILD 160261 2012-05-31 17:12:14Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgname=pixman
pkgver=0.26.0
pkgrel=1
pkgdesc="The pixel-manipulation library for X and cairo"
arch=(i686 x86_64 'mips64el')
url="http://xorg.freedesktop.org"
license=('custom')
depends=('glibc')
options=('!libtool')
source=(http://xorg.freedesktop.org/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2
        test_failures_on_x86-32.diff)
sha1sums=('d772cf794ec5da0966eba3cb360919a0a5e0d23f'
          '24a688271d5cf2c4137a147deaa2975122c01aa8')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
#  [ "$CARCH" = "mips64el" ] && {
#    patch -Np1 -i $srcdir/pixman-loongson2f.patch
#    autoreconf -i
#  }
  patch -Np1 -i ${srcdir}/test_failures_on_x86-32.diff
  ./configure --prefix=/usr --disable-static
  make
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}