# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=marco
pkgver=1.28.1
pkgrel=0
pkgdesc="MATE window manager"
url="https://github.com/mate-desktop/marco"
arch="all"
license="GPL-2.0-or-later"
depends="
	libxml2-utils
	mate-common
	mate-desktop
	yelp-tools
	"
makedepends="
	glib-dev
	gtk+3.0-dev
	intltool
	itstool
	libcanberra-dev
	libtool
	libxcomposite-dev
	libxpresent-dev
	libxres-dev
	mate-desktop-dev
	startup-notification-dev
	zenity
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/marco-$pkgver.tar.xz
	startup-notification-long.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-static=no \
		--prefix=/usr
	make CFLAGS+=" -D_GNU_SOURCE"
}

check() {
	make check
}

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

sha512sums="
3642e3fab967baef35b0e02d3e4b63e3ef97e5e44d01dbde2a7557a5ced41e73f7f8a1e63860aa9bcebe1ea1c8e1f6fd8740d853bf3996c32977b65091364ac3  marco-1.28.1.tar.xz
ad5a84871c4fb16bb27f840cdee1ccf73a018e76c8d729a03e6c0eb424f6c4f7cc9a32216b27a73cae200813daae08a103faac4aeac62b112e443774540a6e63  startup-notification-long.patch
"
