name=lxterminal
version=0.4.0
release=1
desc="The LXDE terminal emulator"
url="https://lxde.org/"
license="GPL-2.0-or-later"
depend="glibc gtk3 vte3"
makedepend=""
source="https://downloads.sourceforge.net/lxde/lxterminal-0.4.0.tar.xz"
sha256="SKIP"

build() {
	export CFLAGS="$CFLAGS -fcommon -Wno-incompatible-pointer-types -Wno-int-conversion"
	cd "lxterminal-0.4.0"
	_opts="--prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib"
	_help=$(./configure --help 2>/dev/null)
	case "$_help" in *--disable-static*)  _opts="$_opts --disable-static" ;; esac
	case "$_help" in *--disable-nls*)     _opts="$_opts --disable-nls" ;; esac
	case "$_help" in *--with-gtk*) _opts="$_opts --with-gtk=3" ;; esac
	case "$_help" in *--enable-gtk3*) _opts="$_opts --enable-gtk3" ;; esac
	./configure $_opts
	make -j"$JOBS"
}

package() {
	cd "lxterminal-0.4.0"
	make DESTDIR="$pkgdir" install
}
