summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libx11/PKGBUILD
blob: e69ed0acf45d70861e08230809241ade2be28336 (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
33
34
35
36
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 1882 2008-05-22 17:44:17Z jgc $
# Maintainer: Alexander Baldeck <alexander@archlinux.org>
# Contributor Jan de Groot <jgc@archlinux.org>
pkgname=libx11
pkgver=1.1.4
pkgrel=2
pkgdesc="X11 client-side library"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
depends=('libxau' 'libxdmcp' 'libxcb>=1.1' 'kbproto' 'inputproto' 'bigreqsproto')
makedepends=('pkgconfig' 'xcmiscproto' 'xextproto' 'xf86bigfontproto' 'xtrans' \
             'bigreqsproto' 'xorg-util-macros' 'autoconf' 'automake' 'libtool')
options=('!libtool')
license=('custom:XFREE86')
source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.bz2
	012_ru_RU_UTF-8_XLC_LOCALE.diff
	xorg.sh)
md5sums=('1469a5a8aa8d288dce6f4c45d2f68dc3'
         'c7e38a68b932ed557bc71979eed2a8a1'
         'ea3f14c529072c8be061493763479800')

build() {
  cd ${startdir}/src/libX11-${pkgver}
  patch -Np1 -i ${startdir}/src/012_ru_RU_UTF-8_XLC_LOCALE.diff || return 1


  libtoolize --force --copy || return 1
  aclocal || return 1
  autoconf || return 1
  automake --add-missing || return 1

  ./configure --prefix=/usr \
              --with-xcb || return 1
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1

  install -d -m755 ${startdir}/pkg/etc/profile.d 
  install -m755 ${startdir}/src/xorg.sh \
                ${startdir}/pkg/etc/profile.d/ || return 1

  install -d -m755 ${startdir}/pkg/usr/share/licenses/${pkgname}
  install -m644 -D ${startdir}/src/libX11-${pkgver}/COPYING \
                   ${startdir}/pkg/usr/share/licenses/${pkgname}/ || return 1
}