aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-02 16:05:55 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:53:39 +0000
commit906e14222500d1a4b82e1907367bad35f0c8ce52 (patch)
treefc4ea5b670b01598dba33581f4b907810977cfff
parent6fad46af13240ddac981345a47b779dd22d99502 (diff)
downloadaports-906e14222500d1a4b82e1907367bad35f0c8ce52.tar.gz
aports-906e14222500d1a4b82e1907367bad35f0c8ce52.tar.bz2
aports-906e14222500d1a4b82e1907367bad35f0c8ce52.tar.xz
main/libsm: modernise, use util-linux for libuuid, doc fixes
-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"