APKBUILD 1016 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
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=2
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"
Natanael Copa's avatar
Natanael Copa committed
11
subpackages="$pkgname-dev $pkgname-doc"
Natanael Copa's avatar
Natanael Copa committed
12 13
source="http://xorg.freedesktop.org/releases/individual/lib/libXdmcp-$pkgver.tar.bz2"

14 15 16 17 18 19
_builddir="$srcdir/libXdmcp-$pkgver"

prepare() {
	cd "$_builddir"
}

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

package() {
	cd "$srcdir"/libXdmcp-$pkgver
33
	make -j1 DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
34
}
35 36 37
md5sums="18aa5c1279b01f9d18e3299969665b2e  libXdmcp-1.1.2.tar.bz2"
sha256sums="81fe09867918fff258296e1e1e159f0dc639cb30d201c53519f25ab73af4e4e2  libXdmcp-1.1.2.tar.bz2"
sha512sums="f96005934b8bc752059106f8caf7df0574f5ef3c7a83bd797497b56ca556a7ff4dc1d28195e421259e82ea027b5c738094add3ec107a22544c9070725d8d46bb  libXdmcp-1.1.2.tar.bz2"