commit fc29b6ad9fea907d79eb73b8c59f40c6b183cbb4 Author: xhaa123 Date: Mon Apr 15 21:03:44 2024 +0800 libxi 1.8.1-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..e35d925 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# 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=libxi +pkgver=1.8.1 +pkgrel=1 +pkgdesc="X11 Input extension library" +arch=('x86_64') +url="https://xorg.freedesktop.org" +license=('custom') +depends=('libxext' 'libxfixes') +makedepends=('util-macros' 'xorgproto') +source=(https://www.x.org/pub/individual/lib/libXi-${pkgver}.tar.xz) +sha256sums=(89bfc0e814f288f784202e6e5f9b362b788ccecdeb078670145eacd8749656a7) + +build() { + cd libXi-${pkgver} + + ${CONFIGURE} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --docdir=/usr/share/doc/libXi-${pkgver} + + make +} + +package() { + cd libXi-${pkgver} + + make DESTDIR=${pkgdir} install +}