summaryrefslogtreecommitdiff
path: root/extra/libxi/PKGBUILD
blob: 90eee20de653679000a853d76147a6dc95e1208c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 145122 2011-12-17 08:47:23Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libxi
pkgver=1.4.4
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=('e4ca1b45368214ba246bfad398ea087125c79f31'
          '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}/"
}