# Contributor: Milan P. Staniić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=weex
pkgver=2.8.4.3
pkgrel=0
pkgdesc="Non-interactive FTP and FTPS client for updating web pages"
url="https://weex.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="openssl-dev automake autoconf"
options="!check" #no tests
subpackages="$pkgname-doc"
source="https://deb.debian.org/debian/pool/main/w/weex/weex_$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	export CBUILD=$CHOST
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--disable-dependency-tracking \
		--disable-nls
	make
}

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

sha512sums="
c65d6a3941ca909ce05d11f54a794665a46b4d25631d95702db1d52d6e00772e92adaf3728421b4cc0149ab79fa7a2843400d0c87e86521cc23e454877fd139f  weex_2.8.4.3.tar.gz
"
