# $Id: PKGBUILD 115723 2011-03-20 15:52:24Z andyrtr $ # Maintainer: Jan de Groot pkgname=libxi pkgver=1.4.3 pkgrel=1 pkgdesc="X11 Input extension library" arch=('i686' 'x86_64' 'mips64el') url="http://xorg.freedesktop.org" depends=('libxext' 'inputproto') makedepends=('pkgconfig' 'xorg-util-macros') options=(!libtool) license=('custom') source=(${url}/releases/individual/lib/libXi-${pkgver}.tar.bz2 XExtInt-align-classes-n32.diff) sha1sums=('c66cfdee74e8d169a7992b5f257395e653ca761b' '30931831efa9a7f8a888f41bb9284fa32f2e2392') build() { cd "${srcdir}/libXi-${pkgver}" patch -Nup0 < "${srcdir}/XExtInt-align-classes-n32.diff" ./configure --prefix=/usr --sysconfdir=/etc --disable-static make } package() { cd "${srcdir}/libXi-${pkgver}" make DESTDIR="${pkgdir}" install install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" }