PKGBUILD 1.26 KB
Newer Older
1 2
_pkgbasename=libx11
pkgname=lib32-$_pkgbasename
3
pkgver=1.6.6
4 5 6 7
pkgrel=1
pkgdesc="X11 client-side library (32-bit)"
arch=(x86_64)
url="http://xorg.freedesktop.org/"
8
depends=('lib32-libxcb' 'xproto' 'kbproto' $_pkgbasename=$pkgver)
9
makedepends=('xorg-util-macros' 'xextproto' 'xtrans' 'inputproto' 'lib32-gcc-libs')
10
license=('custom:XFREE86')
AlmAck's avatar
AlmAck committed
11
source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.bz2{,.sig})
12
sha256sums=('65fe181d40ec77f45417710c6a67431814ab252d21c2e85c75dd1ed568af414f'
AlmAck's avatar
AlmAck committed
13 14 15 16
            'SKIP')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E')
validpgpkeys+=('C41C985FDCF1E5364576638B687393EE37D128F8') # Matthieu Herrb <matthieu.herrb@laas.fr>
validpgpkeys+=('3BB639E56F861FA2E86505690FDD682D974CA72A') # Matt Turner <mattst88@gmail.com>
17 18 19 20 21 22 23 24 25

build() {
  export CC="gcc -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

  cd "${srcdir}/libX11-${pkgver}"
  ./configure --prefix=/usr --disable-static --disable-xf86bigfont \
      --libdir=/usr/lib32 --disable-specs
  make
Xuetian Weng's avatar
Xuetian Weng committed
26 27 28 29 30
}

check() {
  cd "${srcdir}/libX11-${pkgver}"

31 32 33 34 35 36 37 38 39 40 41 42
  make check
}

package() {
  cd "${srcdir}/libX11-${pkgver}"
  make DESTDIR="${pkgdir}" install

  rm -rf "${pkgdir}"/usr/{include,share}

  mkdir -p "$pkgdir/usr/share/licenses"
  ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}