extra/pixman to 0.38.0-2

This commit is contained in:
Kevin Mihelich 2019-02-13 14:05:02 +00:00
parent e1b161786e
commit bda8b4014f

View file

@ -1,37 +1,45 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable arm extensions that aren't supported, autodetection fails
# - disable x86 extensions (mmx, sse2, ssse3)
pkgname=pixman
pkgver=0.36.0
pkgrel=1
pkgver=0.38.0
pkgrel=2
pkgdesc="The pixel-manipulation library for X and cairo"
arch=(x86_64)
url="http://xorg.freedesktop.org"
url="https://cgit.freedesktop.org/pixman/"
license=('custom')
depends=('glibc')
makedepends=('meson' 'libpng')
source=(https://xorg.freedesktop.org/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('10d85590beee287a508a148297808a66d1ce11cd')
sha1sums=('06587395f4a3538bafc0845ac225ea4c6472e550')
#validpgpkeys=('') # Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
[[ $CARCH = "arm" ]] && CONFIG="--disable-arm-simd --disable-arm-neon --disable-arm-iwmmxt"
[[ $CARCH = "armv6h" ]] && 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
arch-meson $pkgbase-$pkgver build \
-D loongson-mmi=disabled \
-D vmx=disabled \
-D arm-simd=disabled \
-D neon=disabled \
-D iwmmxt=disabled \
-D mmx=disabled \
-D sse2=disabled \
-D ssse3=disabled \
-D mips-dspr2=disabled \
-D gtk=disabled
ninja -C build
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
#make check
meson test -C build
}
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}/"
DESTDIR="$pkgdir" meson install -C build
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname-$pkgver/COPYING
}
# vim:set et sw=2: