aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-11 00:17:32 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-17 13:54:30 +0000
commitc866880039570c66da2af427f8287144bc7b261e (patch)
tree9531f4ec98a7e20af1d77208e53a62b00da16a4b
parent0318d3d2eb91517884c8ff7fa0b8d1bc3b32093b (diff)
downloadaports-c866880039570c66da2af427f8287144bc7b261e.tar.gz
aports-c866880039570c66da2af427f8287144bc7b261e.tar.bz2
aports-c866880039570c66da2af427f8287144bc7b261e.tar.xz
main/libxp: modernise, add check
-rw-r--r--main/libxp/APKBUILD35
1 files changed, 13 insertions, 22 deletions
diff --git a/main/libxp/APKBUILD b/main/libxp/APKBUILD
index ffb688e73c..bd26d10903 100644
--- a/main/libxp/APKBUILD
+++ b/main/libxp/APKBUILD
@@ -2,32 +2,21 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxp
pkgver=1.0.3
-pkgrel=0
+pkgrel=1
pkgdesc="X.Org X11 libXp runtime library"
url="http://www.x.org"
arch="all"
license="MIT"
depends=
-depends_dev="libx11-dev libxext-dev libxau-dev printproto"
-makedepends="$depends_dev"
+makedepends="libx11-dev libxext-dev libxau-dev printproto"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.x.org/releases/individual/lib/libXp-$pkgver.tar.bz2
"
-_builddir="$srcdir"/libXp-$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"/libXp-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,16 +24,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="df9e6bf0d988de6694f08693b8002079 libXp-1.0.3.tar.bz2"
-sha256sums="7f360c9905849c3587d48efc0f0ecbc852c19f61a52b18530d6b005cb9148c57 libXp-1.0.3.tar.bz2"
sha512sums="502a2500ec0f519dae69ac035bf93c65c47e3bc301604aacb350e90043455f3485626194db45208e5521300b282843825e08b7f7c412a7497ffa02f5f1560c8d libXp-1.0.3.tar.bz2"