* Use an older glibc so resulting binaries can run on older systems (without having to link statically against glibc) * Call packages static-compat-* to make it clear that these packages are intended for compatibility with older distributions * Add further libraries to get static-compat-qt6-base and some other static-compat-qt6-* packages building
46 lines
1.7 KiB
Bash
46 lines
1.7 KiB
Bash
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
_pkgname=libx11
|
|
pkgname=static-compat-$_pkgname
|
|
pkgver=1.7.5
|
|
pkgrel=3
|
|
pkgdesc="X11 client-side library"
|
|
arch=(x86_64)
|
|
url="https://xorg.freedesktop.org/"
|
|
depends=('static-compat-libxcb')
|
|
makedepends=('static-compat-configure' 'xorg-util-macros' 'static-compat-xtrans' 'static-compat-xorgproto')
|
|
license=('custom')
|
|
options=(!emptydirs staticlibs)
|
|
source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.xz{,.sig})
|
|
sha512sums=('ef33e2f631226cab27657f46e1fd4cfc928f62f928d8297474e7b993017c8f92b60272eed6515990cdf3a9d34581837b7a3896e584f3546dd26f3790034df347'
|
|
'SKIP')
|
|
#validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alanc@freedesktop.org>
|
|
#validpgpkeys=('C41C985FDCF1E5364576638B687393EE37D128F8') # Matthieu Herrb <matthieu.herrb@laas.fr>
|
|
validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') # Matt Turner <mattst88@gmail.com>
|
|
#validpgpkeys=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # Adam Jackson <ajax@nwnk.net>
|
|
#validpgpkeys=('C383B778255613DFDB409D91DB221A6900000011') # "Keith Packard <keithp@keithp.com>"
|
|
|
|
build() {
|
|
source static-compat-environment
|
|
cd libX11-${pkgver}
|
|
static-compat-configure --disable-shared --enable-static --disable-xf86bigfont
|
|
make
|
|
}
|
|
|
|
check() {
|
|
source static-compat-environment
|
|
cd libX11-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
source static-compat-environment
|
|
cd "${srcdir}/libX11-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
rm -r "$pkgdir/$static_compat_prefix"/share/{man,doc}
|
|
|
|
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
}
|