APKBUILD 818 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2
pkgname=libxdmcp
3 4
pkgver=1.1.1
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"
Natanael Copa's avatar
Natanael Copa committed
8
license="custom"
9 10
depends=
makedepends="xproto pkgconfig"
Natanael Copa's avatar
Natanael Copa committed
11 12 13
subpackages="$pkgname-dev"
source="http://xorg.freedesktop.org/releases/individual/lib/libXdmcp-$pkgver.tar.bz2"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

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

package() {
	cd "$srcdir"/libXdmcp-$pkgver
34
	make -j1 DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
35
	rm "$pkgdir"/usr/lib/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
36
}
37
md5sums="b94af6cef211cf3ee256f7e81f70fcd9  libXdmcp-1.1.1.tar.bz2"