commit a40f6c546306ac4953bacdf256424c8a0028ef13 Author: xhaa123 Date: Mon Apr 15 13:47:14 2024 +0800 libsm 1.2.4-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..340cae6 --- /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=libsm +pkgver=1.2.4 +pkgrel=1 +pkgdesc="X11 Session Management library" +arch=('x86_64') +url="https://xorg.freedesktop.org/" +license=('custom') +depends=('libice') +makedepends=('util-macros' 'xtrans' 'xorgproto') +source=(https://www.x.org/pub/individual/lib/libSM-${pkgver}.tar.xz) +sha256sums=(fdcbe51e4d1276b1183da77a8a4e74a137ca203e0bcfb20972dd5f3347e97b84) + +build() { + cd libSM-${pkgver} + + ${CONFIGURE} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --docdir=/usr/share/doc/libSM-${pkgver} + + make +} + +package() { + cd libSM-${pkgver} + + make DESTDIR=${pkgdir} install +}