2012-02-07 13:44:06 +00:00
|
|
|
# $Id: PKGBUILD 149216 2012-02-06 13:29:48Z jgc $
|
2012-02-06 00:18:08 +00:00
|
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Alexander Baldeck <alexander@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable arm extensions that aren't supported, autodetection fails
|
|
|
|
|
|
|
|
pkgname=pixman
|
2012-06-01 17:58:02 +00:00
|
|
|
pkgver=0.26.0
|
2012-04-15 16:27:23 +00:00
|
|
|
pkgrel=1
|
2012-02-07 13:44:06 +00:00
|
|
|
pkgdesc="The pixel-manipulation library for X and cairo"
|
2012-02-06 00:18:08 +00:00
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="http://xorg.freedesktop.org"
|
|
|
|
license=('custom')
|
|
|
|
depends=('glibc')
|
|
|
|
options=('!libtool')
|
2012-06-01 17:58:02 +00:00
|
|
|
source=(http://xorg.freedesktop.org/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2
|
|
|
|
test_failures_on_x86-32.diff)
|
|
|
|
sha1sums=('d772cf794ec5da0966eba3cb360919a0a5e0d23f'
|
|
|
|
'24a688271d5cf2c4137a147deaa2975122c01aa8')
|
2012-02-06 00:18:08 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2012-06-01 17:58:02 +00:00
|
|
|
patch -Np1 -i ${srcdir}/test_failures_on_x86-32.diff
|
2012-02-06 00:18:08 +00:00
|
|
|
[[ $CARCH = "arm" ]] && CONFIG="--disable-arm-simd --disable-arm-neon --disable-arm-iwmmxt"
|
|
|
|
[[ $CARCH = "armv7h" ]] && CONFIG="--disable-arm-neon --disable-arm-iwmmxt"
|
|
|
|
./configure --prefix=/usr --disable-static $CONFIG
|
|
|
|
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}/"
|
|
|
|
}
|