APKBUILD 863 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2
pkgname=libxdmcp
3
pkgver=1.1.2
4
pkgrel=4
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"
9
depends=
10
makedepends="xproto libbsd-dev util-macros xmlto"
Natanael Copa's avatar
Natanael Copa committed
11
subpackages="$pkgname-dev $pkgname-doc"
12
source="http://www.x.org/releases/individual/lib/libXdmcp-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
13

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

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

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

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