APKBUILD 1 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxfont2
3
pkgver=2.0.3
Leo's avatar
Leo committed
4
pkgrel=2
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="X.Org X11 libXfont2 runtime library"
Leo's avatar
Leo committed
6
url="https://www.x.org"
Natanael Copa's avatar
Natanael Copa committed
7 8
arch="all"
license="MIT"
9
options="!check"  # No test suite.
10 11
makedepends="$depends_dev libfontenc-dev freetype-dev zlib-dev xtrans
	util-macros autoconf automake libtool xorgproto"
Natanael Copa's avatar
Natanael Copa committed
12
subpackages="$pkgname-dev"
13
source="https://www.x.org/pub/individual/lib/libXfont2-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
14 15
builddir="$srcdir/libXfont2-$pkgver"

16 17 18 19
# secfixes:
#   2.0.3-r0:
#     - CVE-2017-16611

Natanael Copa's avatar
Natanael Copa committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static \
35 36
		--without-fop
	make
Natanael Copa's avatar
Natanael Copa committed
37 38 39 40
}

package() {
	cd "$builddir"
41
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
42 43
}

44
sha512sums="648b664e2aa58cbc7366a1b05873aa06bd4a38060f64085783043388244af8ceced77b29a22c3ac8b6d34cd226e093bbbcc785ea1748ea65720fe7ea05b4b44b  libXfont2-2.0.3.tar.bz2"