aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-11 00:11:41 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-17 13:53:42 +0000
commit9222f0a0ad117526c8290214b67bd54dd1b79dfb (patch)
treefbc93ac2038701961d1e73a26edc5a3df04a2e5e /main
parent561cb2669d1b41a0146ada780d96248548fb5e45 (diff)
downloadaports-9222f0a0ad117526c8290214b67bd54dd1b79dfb.tar.bz2
aports-9222f0a0ad117526c8290214b67bd54dd1b79dfb.tar.xz
main/libxaw: modernise, add check and missing deps
Diffstat (limited to 'main')
-rw-r--r--main/libxaw/APKBUILD33
1 files changed, 13 insertions, 20 deletions
diff --git a/main/libxaw/APKBUILD b/main/libxaw/APKBUILD
index 53044c1bc7..ee3d9e1e58 100644
--- a/main/libxaw/APKBUILD
+++ b/main/libxaw/APKBUILD
@@ -1,31 +1,20 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxaw
pkgver=1.0.13
-pkgrel=0
+pkgrel=1
pkgdesc="X Athena Widget Set"
url="http://www.x.org"
arch="all"
license="MIT"
depends=""
-depends_dev="xproto libxmu-dev libxpm-dev libxext-dev"
-makedepends="$depends_dev"
+makedepends="xproto libxmu-dev libxpm-dev libxext-dev libx11-dev util-macros"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.x.org/releases/individual/lib/libXaw-$pkgver.tar.bz2"
-_builddir="$srcdir"/libXaw-$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
-}
-
+builddir="$srcdir"/libXaw-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -36,14 +25,18 @@ build() {
--localstatedir=/var \
--disable-xaw8 \
--disable-static \
- --disable-xaw6 \
- || return 1
- make || return 1
+ --disable-xaw6
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
md5sums="e5e06eb14a608b58746bdd1c0bd7b8e3 libXaw-1.0.13.tar.bz2"