aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/libsm/APKBUILD25
1 files changed, 17 insertions, 8 deletions
diff --git a/main/libsm/APKBUILD b/main/libsm/APKBUILD
index fa6767fe1b..cc3f08e5d3 100644
--- a/main/libsm/APKBUILD
+++ b/main/libsm/APKBUILD
@@ -1,32 +1,41 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsm
pkgver=1.2.2
-pkgrel=0
+pkgrel=1
pkgdesc="X11 Session Management library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
depends=
subpackages="$pkgname-dev $pkgname-doc"
-makedepends="libice-dev e2fsprogs-dev xproto xtrans"
+makedepends="libice-dev xproto xtrans util-linux-dev util-macros xmlto"
+checkdepends="check-dev"
source="http://www.x.org/releases/individual/lib/libSM-$pkgver.tar.bz2"
-depends_dev="libice-dev xproto"
+builddir="$srcdir"/libSM-$pkgver
build () {
- cd "$srcdir"/libSM-$pkgver
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
- || return 1
- make || return 1
+ --with-libuuid \
+ --enable-docs \
+ --with-xmlto \
+ --without-fop
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$srcdir"/libSM-$pkgver
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="499a7773c65aba513609fe651853c5f3 libSM-1.2.2.tar.bz2"