archrelease: copy trunk to community-any
[ArchLinux/community.git] / lib32-libsm / trunk / PKGBUILD
blob4c4f87db73e26fa57b5f70697be8f083eb5b03b0
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 _pkgbasename=libsm
4 pkgname=lib32-$_pkgbasename
5 pkgver=1.2.4
6 pkgrel=1
7 pkgdesc="X11 Session Management library (32-bit)"
8 arch=('x86_64')
9 license=('custom')
10 url="https://xorg.freedesktop.org/"
11 depends=('lib32-libice' 'lib32-util-linux' $_pkgbasename)
12 makedepends=('xorg-util-macros' 'xtrans' 'gcc-multilib' 'xorgproto')
13 source=(${url}/releases/individual/lib/libSM-${pkgver}.tar.xz)
14 sha512sums=('7f1d41b7b6c5dd456c49ccad7740c3ba9791a2793fa50fd94814a4164ce2e20c4a0a0ad42a87708e494ed5c23f611be6d3ccd9ef1e9add6d46ac545e2b0f6f86')
16 build() {
17   cd libSM-${pkgver}
19   export CC="gcc -m32"
20   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
22   ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32
23   make
26 package() {
27   cd libSM-${pkgver}
28   make DESTDIR="${pkgdir}" install
30   rm -rf "${pkgdir}"/usr/{include,share}
32   mkdir -p "$pkgdir/usr/share/licenses"
33   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"