# Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor (Arch): Florian Pritz <bluewind@xinu.at>
# Contributor (Arch): Martchus <martchus@gmx.net>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

_realpkgname=libfilezilla
pkgname=$_realpkgname-legacy
pkgver=0.26.0
pkgrel=3
pkgdesc="Small and modern C++, runtime library for building platform-independent programs (legacy version)"
arch=('i686' 'x86_64')
license=('GPL-2')
depends=('glibc' 'gcc-libs' 'nettle' 'gnutls')
makedepends=('clang' 'gettext-tiny')
checkdepends=('cppunit')
source=("https://repo.hyperbola.info:50000/sources/filezilla/${_realpkgname-legacy}-${pkgver}.tar.bz2"{,.sig})
sha512sums=('96ccc61e66dae744c092389a570f591e4f4e62ebf4fc39ed5a60206ea96b47b1aeb3d8f2fb7e22b4920560af4ec212540cc177d23ddbeea879dcd80143b86af6'
            'SKIP')
validpgpkeys=('C92BAA713B8D53D3CAE63FC9E6974752F9704456') # André Silva

build() {
  cd ${_realpkgname-legacy}-${pkgver}
  export CXX=clang++
  export CC=clang
  ./configure \
    --prefix=/usr \
    --disable-static
  make
}

package() {
  cd ${_realpkgname-legacy}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}
