archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libx11 / trunk / PKGBUILD
blob3cd2f7c0b9eb54e0287917bb9bd4cd060c195cce
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=libx11
4 pkgver=1.8.4
5 pkgrel=1
6 pkgdesc="X11 client-side library"
7 arch=(x86_64)
8 url="https://xorg.freedesktop.org/"
9 # keep xorgproto runtime dependency
10 # https://lists.archlinux.org/pipermail/arch-dev-public/2019-December/029767.html
11 depends=('libxcb' 'xorgproto')
12 makedepends=('xorg-util-macros' 'xtrans')
13 license=('custom')
14 source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.xz{,.sig})
15 sha512sums=('3150a47498b0cb012482ee02efeaae16d9e736288f2b3f917be912e1613d56ad6b4ab180de8820305deb2b95dfd993633f43a65344d75979d6b86bdf110cb63e'
16             'SKIP')
17 validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alanc@freedesktop.org>
18 #validpgpkeys=('C41C985FDCF1E5364576638B687393EE37D128F8') # Matthieu Herrb <matthieu.herrb@laas.fr>
19 #validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') # Matt Turner <mattst88@gmail.com>
20 #validpgpkeys=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # Adam Jackson <ajax@nwnk.net>
21 #validpgpkeys=('C383B778255613DFDB409D91DB221A6900000011') # "Keith Packard <keithp@keithp.com>"
23 build() {
24   cd libX11-${pkgver}
25   ./configure --prefix=/usr \
26     --disable-static \
27     --disable-xf86bigfont
28   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
29   make
32 check() {
33   cd libX11-${pkgver}
34   make check
37 package() {
38   cd "${srcdir}/libX11-${pkgver}"
39   make DESTDIR="${pkgdir}" install
41   install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
42   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"