upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-libx11 / trunk / PKGBUILD
blobd143cb7272a4e4da383f6ac0423cb8ef2cf58234
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 _pkgbasename=libx11
4 pkgname=lib32-$_pkgbasename
5 pkgver=1.8.4
6 pkgrel=1
7 pkgdesc="X11 client-side library (32-bit)"
8 arch=(x86_64)
9 url="https://xorg.freedesktop.org/"
10 depends=('lib32-libxcb' $_pkgbasename)
11 makedepends=('xorg-util-macros' 'xorgproto' 'xtrans' 'gcc-multilib')
12 license=('custom:XFREE86')
13 source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.xz{,.sig})
14 sha512sums=('3150a47498b0cb012482ee02efeaae16d9e736288f2b3f917be912e1613d56ad6b4ab180de8820305deb2b95dfd993633f43a65344d75979d6b86bdf110cb63e'
15             'SKIP')
16 validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alanc@freedesktop.org>
17 validpgpkeys+=('C41C985FDCF1E5364576638B687393EE37D128F8') # Matthieu Herrb <matthieu.herrb@laas.fr>
18 validpgpkeys+=('3BB639E56F861FA2E86505690FDD682D974CA72A') # Matt Turner <mattst88@gmail.com>
19 validpgpkeys+=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # Adam Jackson <ajax@nwnk.net>
20 #validpgpkeys+=('C383B778255613DFDB409D91DB221A6900000011') # "Keith Packard <keithp@keithp.com>"
22 build() {
23   export CC="gcc -m32"
24   export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
26   cd libX11-${pkgver}
27   ./configure --prefix=/usr --disable-static --disable-xf86bigfont --disable-thread-safety-constructor \
28       --libdir=/usr/lib32 --disable-specs
29   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
30   make
33 check() {
34   cd libX11-${pkgver}
36   make check
39 package() {
40   cd libX11-${pkgver}
41   make DESTDIR="${pkgdir}" install
43   rm -rf "${pkgdir}"/usr/{include,share}
45   mkdir -p "$pkgdir/usr/share/licenses"
46   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"