aboutsummaryrefslogtreecommitdiffstats
path: root/main/libsm/APKBUILD
blob: 9da1788ee058e15e0cd914cf59d0e340d48da26c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsm
pkgver=1.2.3
pkgrel=0
pkgdesc="X11 Session Management library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
depends=
subpackages="$pkgname-dev $pkgname-doc"
makedepends="libice-dev xorgproto xtrans util-linux-dev util-macros xmlto"
checkdepends="check-dev"
source="https://www.x.org/releases/individual/lib/libSM-$pkgver.tar.bz2"

builddir="$srcdir"/libSM-$pkgver

build () {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-libuuid \
		--enable-docs \
		--with-xmlto \
		--without-fop
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="74c42e27029db78475e62025b4711dbac5e22d2f8e8a24be98a1c31b03c0fc4afe859928f851800ea0b76854f12147900dc4f27bbfd3d8ea45daaaf24b70a903  libSM-1.2.3.tar.bz2"