# Maintainer:
# Contributor: Sergey Lukin <sergej.lukin@gmail.com>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libwnck3
pkgver=3.24.1
pkgrel=0
pkgdesc="Window Navigator Construction Kit"
url="https://git.gnome.org/browse/libwnck"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
replaces="libwnck"
depends_dev="glib-dev gtk+3.0-dev libx11-dev pango-dev cairo-dev
	startup-notification-dev libxres-dev"
makedepends="$depends_dev intltool"
source="https://download.gnome.org/sources/libwnck/${pkgver%.*}/libwnck-$pkgver.tar.xz"

_builddir="$srcdir"/libwnck-$pkgver

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}
sha512sums="e8a31ab2dc0c282f1e0994ce6a2ccd18678dc5c140943399262e795052b7f5da2d6a5d388a74f4b10f8fac66ab138983a9caaee4e72c92a17c01ca5c39b731e1  libwnck-3.24.1.tar.xz"
