APKBUILD 858 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2
pkgname=libxdmcp
Leo's avatar
Leo committed
3 4
pkgver=1.1.3
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="X11 Display Manager Control Protocol library"
url="http://xorg.freedesktop.org/"
7
arch="all"
8
license="MIT"
Natanael Copa's avatar
Natanael Copa committed
9
makedepends="xorgproto libbsd-dev util-macros xmlto"
Natanael Copa's avatar
Natanael Copa committed
10
subpackages="$pkgname-dev $pkgname-doc"
11
source="https://www.x.org/releases/individual/lib/libXdmcp-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
12

13 14 15 16
builddir="$srcdir/libXdmcp-$pkgver"
# secfixes:
#   1.1.2-r3:
#   - CVE-2017-2625
17

Natanael Copa's avatar
Natanael Copa committed
18
build() {
19
	cd "$builddir"
20 21 22 23
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
24 25 26 27 28 29 30
		--sysconfdir=/etc
	make
}

check() {
	cd "$builddir"
	make check
31 32 33
}

package() {
34 35
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
36
}
Leo's avatar
Leo committed
37
sha512sums="cb1d4650f97d66e73acd2465ec7d757b9b797cce2f85e301860a44997a461837eea845ec9bd5b639ec5ca34c804f8bdd870697a5ce3f4e270b687c9ef74f25ec  libXdmcp-1.1.3.tar.bz2"