lib32/lib32-cairo/PKGBUILD

56 lines
1.6 KiB
Bash
Raw Normal View History

# Lib32 Packages for Chakra, part of chakra-project.org
#
_pkgbasename=cairo
pkgname=lib32-$_pkgbasename
2015-12-14 16:24:01 +08:00
pkgver=1.14.4
pkgrel=1
_ubuntu_diff_version=${pkgver}-1
pkgdesc="Cairo vector graphics library (32-bit)"
arch=('x86_64')
url="http://cairographics.org/"
license=('LGPL' 'MPL')
2012-11-07 22:52:05 +08:00
makedepends=('gcc-multilib' 'libtool-multilib')
2015-12-14 16:24:01 +08:00
depends=('lib32-libpng' 'lib32-libxext' 'lib32-libxrender' 'lib32-fontconfig'
'lib32-pixman' 'lib32-glib2' 'lib32-mesa' 'lib32-libgl'
${_pkgbasename}=${pkgver})
provides=("${pkgname}-ubuntu")
conflicts=("${pkgname}-ubuntu")
replaces=("${pkgname}-ubuntu")
2013-10-28 18:03:23 +08:00
source=("http://cairographics.org/releases/${_pkgbasename}-${pkgver}.tar.xz"
2015-12-14 16:24:01 +08:00
"http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_${_ubuntu_diff_version}.debian.tar.xz")
sha1sums=('5b44471e7c328f96de6830baf8ea65030de797f9'
'7602b72defd4f540bcc29a1860e30f00db86a808')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/${_pkgbasename}-${pkgver}"
2013-10-28 18:03:23 +08:00
# apply ubuntu patches
for _f in $(cat "$srcdir/debian/patches/series" | grep -v '#') ; do
patch -Np1 -i "$srcdir/debian/patches/$_f"
done
2012-11-07 22:52:05 +08:00
autoreconf -vfi
2013-10-28 18:03:23 +08:00
./configure --prefix=/usr \
2015-12-14 16:24:01 +08:00
--libdir=/usr/lib32 \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl
# --disable-xlib-xcb
make
}
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
2015-12-14 16:24:01 +08:00
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}