APKBUILD 859 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=3
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"
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 25 26
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
27
	make || return 1
28 29 30 31
}

package() {
	cd "$srcdir"/libXdmcp-$pkgver
32
	make -j1 DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
33
}
34
sha512sums="f96005934b8bc752059106f8caf7df0574f5ef3c7a83bd797497b56ca556a7ff4dc1d28195e421259e82ea027b5c738094add3ec107a22544c9070725d8d46bb  libXdmcp-1.1.2.tar.bz2"