aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxscrnsaver/APKBUILD
blob: 2e7bbec39029c57411d397da0b151373f0974ef0 (plain)
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
39
40
41
42
43
44
45
46
47
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxscrnsaver
pkgver=1.2.2
pkgrel=3
pkgdesc="X.Org screen saver extension"
url="https://cgit.freedesktop.org/xorg/lib/libXScrnSaver/"
arch="all"
license="MIT"
depends=""
depends_dev="libxext-dev"
makedepends="$depends_dev libx11-dev util-macros xorgproto"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.x.org/releases/individual/lib/libXScrnSaver-$pkgver.tar.bz2"

builddir="$srcdir"/libXScrnSaver-$pkgver
prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

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

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="973aed3ad296c7160b66fccd4fff7375afc4332239acbe0ae1644fed9c453de69040f8174882ba264c731448edba9b499d398d013d556aea72434339399ed29f  libXScrnSaver-1.2.2.tar.bz2"