aboutsummaryrefslogtreecommitdiffstats
path: root/main/xcb-util-renderutil/APKBUILD
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-renderutil/APKBUILD
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-renderutil/APKBUILD')
-rw-r--r--main/xcb-util-renderutil/APKBUILD34
1 files changed, 14 insertions, 20 deletions
diff --git a/main/xcb-util-renderutil/APKBUILD b/main/xcb-util-renderutil/APKBUILD
index 19e193fa67..019d9a4611 100644
--- a/main/xcb-util-renderutil/APKBUILD
+++ b/main/xcb-util-renderutil/APKBUILD
@@ -2,32 +2,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xcb-util-renderutil
pkgver=0.3.9
-pkgrel=0
-pkgdesc="Utility libraries for XC Binding - renderutil"
+pkgrel=1
+pkgdesc="X C-language Binding - Convenience functions for XRender extension"
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-dev"
install=""
replaces="xcb-util"
subpackages="$pkgname-dev"
source="http://xcb.freedesktop.org/dist/xcb-util-renderutil-$pkgver.tar.gz"
-_builddir="$srcdir"/xcb-util-renderutil-$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="ac18c1b70ae69845e112f1d987926436 xcb-util-renderutil-0.3.9.tar.gz"