Name libsm
Description X11 Session Management library
Version 1.2.6-1
Package Base libsm
Homepage https://xorg.freedesktop.org/
Maintainers ['Andreas Radke <andyrtr@archlinux.org>']
Contributors ['Jan de Groot <jgc@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/libsm
Sources ['https://xorg.freedesktop.org//releases/individual/lib/libSM-1.2.6.tar.xz', 'https://xorg.freedesktop.org//releases/individual/lib/libSM-1.2.6.tar.xz.sig']
Dependencies ['glibc', 'libice', 'util-linux-libs', 'xorgproto']
Optional-Dependencies []
Build-Dependencies ['xorg-util-macros', 'xtrans']
Provides []
Builddate 09-03-2025 08:42:19
Architecture x86_64
Distro-Version
Licenses ['MIT', 'MIT-open-group']
Hash ce334b07a9701ba6ef4d610257500f7b035dc1cdc0a658e056d293547cde0976
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=libsm
pkgver=1.2.6
pkgrel=1
pkgdesc="X11 Session Management library"
arch=('x86_64')
license=('MIT' 'MIT-open-group')
url="https://xorg.freedesktop.org/"
depends=('libice' 'util-linux-libs' 'xorgproto' 'glibc')
makedepends=('xorg-util-macros' 'xtrans')
source=(${url}/releases/individual/lib/libSM-${pkgver}.tar.xz{,.sig})
sha512sums=('e544a1dc49a03390f76af35837bfd01f749b806d88d3ee806f20311c47ff53d0aeea4744feb875958031b17d50b57a89dcc41d81241c09333c88b268c44653a7'
            'SKIP')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alanc@freedesktop.org>

build() {
  cd libSM-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd libSM-${pkgver}
  make DESTDIR="${pkgdir}" install

  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}