aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxrandr/APKBUILD
blob: 711c6cdecf43cd3a2e2ccc4ed6498158e3f1addf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxrandr
pkgver=1.5.1
pkgrel=2
pkgdesc="X11 RandR extension library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
options="!check"  # No test suite.
depends=
depends_dev="libxext-dev"
makedepends="xorgproto $depends_dev libx11-dev libxrender-dev util-macros"
source="https://www.x.org/releases/individual/lib/libXrandr-$pkgver.tar.bz2
	"

builddir="$srcdir"/libXrandr-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="28e486f1d491b757173dd85ba34ee884  libXrandr-1.5.1.tar.bz2"
sha256sums="1ff9e7fa0e4adea912b16a5f0cfa7c1d35b0dcda0e216831f7715c8a3abcf51a  libXrandr-1.5.1.tar.bz2"
sha512sums="ddcee1c50da8810412fd747b05a073ee5522b2f3b0a74e6a9b48b489ce9712356d1bc3009f8898aeee85671cdb44e2dafa04c8caf23d97963b36b1af9174445a  libXrandr-1.5.1.tar.bz2"