aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-16 23:02:18 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:53:38 +0000
commit399459fa817e5ee2741d47ad4cf7ac0949498fcd (patch)
treee1598e4b6e31c4aedac53a810d66841abc28ecfb
parent82a43f1ebbbfa9815ad2a9266ef5c939448fbeaa (diff)
downloadaports-399459fa817e5ee2741d47ad4cf7ac0949498fcd.tar.gz
aports-399459fa817e5ee2741d47ad4cf7ac0949498fcd.tar.bz2
aports-399459fa817e5ee2741d47ad4cf7ac0949498fcd.tar.xz
main/libxpm: modernise, fix deps, mark no tests
-rw-r--r--main/libxpm/APKBUILD17
1 files changed, 9 insertions, 8 deletions
diff --git a/main/libxpm/APKBUILD b/main/libxpm/APKBUILD
index 5ae14b1bfa..aaa20e6501 100644
--- a/main/libxpm/APKBUILD
+++ b/main/libxpm/APKBUILD
@@ -6,27 +6,28 @@ pkgdesc="X11 pixmap library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom:BELL"
+options="!check" # No test suite.
subpackages="$pkgname-dev $pkgname-doc"
depends=
-makedepends="libxt-dev libxext-dev libx11-dev util-linux-dev"
+makedepends="libxt-dev libxext-dev libx11-dev util-linux-dev util-macros"
source="http://www.x.org/releases/individual/lib/libXpm-$pkgver.tar.bz2"
-depends_dev="libx11-dev"
+builddir="$srcdir"/libXpm-$pkgver
+
build() {
- cd "$srcdir"/libXpm-$pkgver
+ cd "$builddir"
ac_cv_search_gettext=no \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --sysconfdir=/etc \
- || return 1
- make || return 1
+ --sysconfdir=/etc
+ make
}
package() {
- cd "$srcdir"/libXpm-$pkgver
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="20f4627672edb2bd06a749f11aa97302 libXpm-3.5.12.tar.bz2"