aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-12 02:24:22 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:54:40 +0000
commit7e9c4c2b234fb48c0b87f9aa450447ea3c1e508d (patch)
tree6bb1537ca0162c6f89eb0ab76e20f482dd801c36
parentf4d32f989e7b629633ed703c9041329abf28cf81 (diff)
downloadaports-7e9c4c2b234fb48c0b87f9aa450447ea3c1e508d.tar.bz2
aports-7e9c4c2b234fb48c0b87f9aa450447ea3c1e508d.tar.xz
main/xsetroot: modernise, fix deps, add test suite, fix config.sub
-rw-r--r--main/xsetroot/APKBUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/main/xsetroot/APKBUILD b/main/xsetroot/APKBUILD
index c154247428..beb76211ad 100644
--- a/main/xsetroot/APKBUILD
+++ b/main/xsetroot/APKBUILD
@@ -1,21 +1,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xsetroot
pkgver=1.1.1
-pkgrel=0
+pkgrel=1
pkgdesc="X.Org xsetroot application"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=""
-makedepends="libx11-dev libxmu-dev libxcursor-dev xbitmaps"
+makedepends="libx11-dev libxmu-dev libxcursor-dev xbitmaps util-macros"
source="http://www.x.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- default_prepare || return 1
cd "$builddir"
- update_config_sub || return 1
+ chmod a+w config.sub
+ update_config_sub
+ default_prepare
}
build() {
@@ -26,14 +27,18 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
md5sums="7211b31ec70631829ebae9460999aa0b xsetroot-1.1.1.tar.bz2"