# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libfilezilla
pkgver=0.12.1
pkgrel=0
pkgdesc="C++ library, offering some basic functionality to build high-performing, platform-independent programs"
url="http://filezilla-project.org"
arch="all"
license="GPL-2.0"
makedepends="cppunit-dev"
subpackages="$pkgname-dev"
source="http://download.filezilla-project.org/libfilezilla/libfilezilla-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

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

check() {
	cd "$builddir"
	make check
}

sha512sums="3eeeb549eb5e07c712246a21c41e4ce076f4e9de8a65ad56f2a33bd7390a42950442cdb7113696b9673071f1f4253e847e4f961e97d4c8fad0a5369e790928dc  libfilezilla-0.12.1.tar.bz2"
