lib32/lib32-libxxf86dga/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

2011-01-16 00:38:22 +08:00
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=libxxf86dga
pkgname=lib32-$_pkgbasename
pkgver=1.1.1
pkgrel=1
pkgdesc="X11 Direct Graphics Access extension library (32-bit)"
arch=(x86_64)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('lib32-libxext' 'xf86dgaproto' $_pkgbasename=$pkgver)
2011-01-16 00:38:22 +08:00
makedepends=('xorg-util-macros' gcc-multilib)
options=('!libtool')
source=(${url}/releases/individual/lib/libXxf86dga-${pkgver}.tar.bz2)
md5sums=('368837d3d7a4d3b4f70be48383e3544e')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/libXxf86dga-${pkgver}"
./configure --prefix=/usr --disable-static \
--libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/libXxf86dga-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}