# Maintainer: Miles Alan <m@milesalan.com>
pkgname=gtk-server
pkgver=2.4.6
pkgrel=1
pkgdesc="Interpreted GUI Programming for GTK"
url="https://www.gtk-server.org/"
# x86: textrels
arch="all !x86"
license="GPL-2.0-or-later"
makedepends="gtk+3.0-dev"
subpackages="$pkgname-doc"
source="https://www.gtk-server.org/stable/gtk-server-$pkgver.tar.gz"
builddir="$srcdir/gtk-server-$pkgver/src"
options="!check" # Has no tests

prepare() {
	default_prepare

	update_config_guess
	update_config_sub
}

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--host=$CHOST \
		--build=$CBUILD \
		--with-gtk3
	make
}

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

sha512sums="
0991f6d5e2fb95ce5ae1454574090f91a81a78ccfb1b753ccbc7ac16a1cbe71e43a17aa02c6dfd7030035ace7ee6fa4315c72a1e28ea478326597c6bb4d351fc  gtk-server-2.4.6.tar.gz
"
