commit 667992ff52015e2c253a800765feb1769e573d53 Author: xhaa123 Date: Mon Apr 15 10:42:11 2024 +0800 libx11 1.8.7-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6aa9760 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=libx11 +pkgver=1.8.7 +pkgrel=1 +pkgdesc="X11 client-side library" +arch=('x86_64') +url="https://xorg.freedesktop.org/" +license=('custom') +depends=('glibc' 'libxcb' 'libxau' 'libxdmcp') +makedepends=('util-macros' 'xorgproto' 'xtrans') +source=(https://www.x.org/pub/individual/lib/libX11-${pkgver}.tar.xz) +sha256sums=(05f267468e3c851ae2b5c830bcf74251a90f63f04dd7c709ca94dc155b7e99ee) + +build() { + cd libX11-${pkgver} + + ${CONFIGURE} \ + --disable-static \ + --docdir=/usr/share/doc/libX11-${pkgver} + + make +} + +package() { + cd libX11-${pkgver} + + make DESTDIR=${pkgdir} install +}