summaryrefslogtreecommitdiff
path: root/extra/pixman/PKGBUILD
blob: d86a432b7a9aa917ac458c088e69fb61228abe0c (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
# $Id: PKGBUILD 147073 2012-01-21 15:12:23Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgname=pixman
pkgver=0.24.2
pkgrel=1
pkgdesc="Pixman library"
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)
sha1sums=('233eed3cd16ee1b2a842140477503d2c68b74418')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
#  [ "$CARCH" = "mips64el" ] && {
#    patch -Np1 -i $srcdir/pixman-loongson2f.patch
#    autoreconf -i
#  }
  ./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}/"
}