aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-05 23:48:59 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:53:38 +0000
commit19cc207b0d4857c8638b856fd863d1875092f576 (patch)
tree388cfe2de2a7b6996a7b146789bf055b0e53e98c
parent0782737592e52c6d6f74bb2eb9a3edaf23f8916a (diff)
downloadaports-19cc207b0d4857c8638b856fd863d1875092f576.tar.bz2
aports-19cc207b0d4857c8638b856fd863d1875092f576.tar.xz
main/libxft: modernise, fix deps, no test suite
-rw-r--r--main/libxft/APKBUILD22
1 files changed, 9 insertions, 13 deletions
diff --git a/main/libxft/APKBUILD b/main/libxft/APKBUILD
index 9a006f5cc6..9db7536635 100644
--- a/main/libxft/APKBUILD
+++ b/main/libxft/APKBUILD
@@ -1,37 +1,33 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxft
pkgver=2.3.2
-pkgrel=1
+pkgrel=2
pkgdesc="FreeType-based font drawing library for X"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
+options="!check" # No test suite.
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="zlib-dev"
-makedepends="$depends_dev fontconfig-dev freetype-dev xproto libxrender-dev"
+makedepends="$depends_dev fontconfig-dev freetype-dev xproto libxrender-dev util-macros"
source="http://www.x.org/releases/individual/lib/libXft-$pkgver.tar.bz2"
-_builddir="$srcdir/libXft-$pkgver"
-
-prepare() {
- cd "$_builddir"
-}
+builddir="$srcdir/libXft-$pkgver"
build () {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --sysconfdir=/etc \
- || return 1
- make || return 1
+ --sysconfdir=/etc
+ make
}
package() {
- cd "$srcdir"/libXft-$pkgver
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="331b3a2a3a1a78b5b44cfbd43f86fcfe libXft-2.3.2.tar.bz2"