# Contributor: Andreas Radke # Contributor: Jan de Groot _pkgname=libsm pkgname=static-compat-$_pkgname pkgver=1.2.4 pkgrel=1 pkgdesc="X11 Session Management library" arch=('x86_64') license=('custom') url="https://xorg.freedesktop.org/" depends=('static-compat-libice' 'static-compat-util-linux') makedepends=('xorg-util-macros' 'static-compat-xtrans' 'static-compat-xorgproto' 'static-compat-configure') options=(!emptydirs staticlibs) source=(${url}/releases/individual/lib/libSM-${pkgver}.tar.xz{,.sig}) sha512sums=('7f1d41b7b6c5dd456c49ccad7740c3ba9791a2793fa50fd94814a4164ce2e20c4a0a0ad42a87708e494ed5c23f611be6d3ccd9ef1e9add6d46ac545e2b0f6f86' 'SKIP') validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith build() { source static-compat-environment cd libSM-${pkgver} static-compat-configure --disable-shared --enable-static --sysconfdir=/etc make } package() { source static-compat-environment cd libSM-${pkgver} make DESTDIR="${pkgdir}" install rm -r "$pkgdir/$static_compat_prefix"/share/doc install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" }