aboutsummaryrefslogtreecommitdiffstats
path: root/main/xcb-util-wm
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-31 22:32:10 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:54:40 +0000
commita02691d702d762dfdeb63107b465adf3456876ba (patch)
treee33e02934ef1820e6dc8520a6f9f593b9037c9ef /main/xcb-util-wm
parent3651e41726f8baf204c9d5cef25418d8baab0629 (diff)
downloadaports-a02691d702d762dfdeb63107b465adf3456876ba.tar.bz2
aports-a02691d702d762dfdeb63107b465adf3456876ba.tar.xz
main/xcb-utils*: modernise, update depends, add test suites
Diffstat (limited to 'main/xcb-util-wm')
-rw-r--r--main/xcb-util-wm/APKBUILD34
1 files changed, 14 insertions, 20 deletions
diff --git a/main/xcb-util-wm/APKBUILD b/main/xcb-util-wm/APKBUILD
index 8db39cf910..ce450a3e11 100644
--- a/main/xcb-util-wm/APKBUILD
+++ b/main/xcb-util-wm/APKBUILD
@@ -2,32 +2,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xcb-util-wm
pkgver=0.4.1
-pkgrel=0
-pkgdesc="Utility libraries for XC Binding - wm"
+pkgrel=1
+pkgdesc="X C-language Binding - helpers for ICCCM and EWMH"
url="http://xcb.freedesktop.org/"
arch="all"
license="MIT"
depends=
depends_dev="xcb-util-dev"
-makedepends="$depends_dev m4"
+makedepends="$depends_dev m4 util-macros"
+checkdepends="check"
install=""
replaces="xcb-util"
subpackages="$pkgname-dev"
source="http://xcb.freedesktop.org/dist/xcb-util-wm-$pkgver.tar.gz"
-_builddir="$srcdir"/xcb-util-wm-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,14 +25,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
md5sums="0831399918359bf82930124fa9fd6a9b xcb-util-wm-0.4.1.tar.gz"