From 5dc58fd77fb1bf7195ae05f3c97ac71b8c9209cc Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 1 Jun 2016 00:22:52 +0200 Subject: [PATCH] Add mingw-w64-{lib,}filezilla --- filezilla/mingw-w64/PKGBUILD | 51 +++++++++++++++++++++++++++++++++ libfilezilla/mingw-w64/PKGBUILD | 43 +++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 filezilla/mingw-w64/PKGBUILD create mode 100644 libfilezilla/mingw-w64/PKGBUILD diff --git a/filezilla/mingw-w64/PKGBUILD b/filezilla/mingw-w64/PKGBUILD new file mode 100644 index 00000000..6fbda78f --- /dev/null +++ b/filezilla/mingw-w64/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +_name=filezilla +pkgname=mingw-w64-filezilla +pkgver=3.18.0 +pkgrel=1 +pkgdesc="Fast and reliable FTP, FTPS and SFTP client (mingw-w64)" +arch=('any') +url="https://filezilla-project.org/" +license=('GPL') +depends=('mingw-w64-crt' 'mingw-w64-libidn' 'mingw-w64-sqlite' 'mingw-w64-gnutls' 'mingw-w64-wxmsw' 'mingw-w64-libfilezilla') +makedepends=('mingw-w64-configure' 'wxgtk') +options=(staticlibs !strip !buildflags) +install= +source=("http://downloads.sourceforge.net/project/filezilla/FileZilla_Client/${pkgver}/FileZilla_${pkgver}_src.tar.bz2") +md5sums=('9aaad9197ab3d80d658af8db6e8cbbcd') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd "${_name}-${pkgver}" + autoreconf -i +} + +build() { + for _arch in ${_architectures}; do + mkdir -p "${srcdir}/${_name}-${pkgver}/build-${_arch}" && cd "${srcdir}/${_name}-${pkgver}/build-${_arch}" + export PATH="/usr/${_arch}/bin:${PATH}" + ${_arch}-configure \ + --disable-manualupdatecheck \ + --disable-autoupdatecheck \ + --with-pugixml=builtin \ + --with-wx-config="${_arch}-wx-config --static=no" + make + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${_name}-${pkgver}/build-${_arch}" + export PATH="/usr/${_arch}/bin:${PATH}" + make DESTDIR="${pkgdir}" install + ${_arch}-strip --strip-all "${pkgdir}"/usr/${_arch}/bin/*.exe + #${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll + #${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a + rm -r "${pkgdir}/usr/${_arch}/share/"{icons,man,appdata,applications,pixmaps} + done +} diff --git a/libfilezilla/mingw-w64/PKGBUILD b/libfilezilla/mingw-w64/PKGBUILD new file mode 100644 index 00000000..65fb2254 --- /dev/null +++ b/libfilezilla/mingw-w64/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +_name=libfilezilla +pkgname=mingw-w64-libfilezilla +pkgver=0.5.2 +pkgrel=1 +pkgdesc="Library used by FileZilla (mingw-w64)" +arch=('any') +url="https://filezilla-project.org/" +license=('GPL') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-configure') +options=(staticlibs !strip !buildflags) +install= +source=("http://downloads.sourceforge.net/project/filezilla/libfilezilla/${pkgver}/${_name}-${pkgver}.tar.bz2") +md5sums=('be50726969cabda0f1b1c9ee432c1f4e') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd "${srcdir}/${_name}-${pkgver}" + autoreconf -i +} + +build() { + for _arch in ${_architectures}; do + mkdir -p "${srcdir}/${_name}-${pkgver}/build-${_arch}" && cd "${srcdir}/${_name}-${pkgver}/build-${_arch}" + ${_arch}-configure + make + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${_name}-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + ${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + done +}