Add mingw-w64-{lib,}filezilla

This commit is contained in:
Martchus 2016-06-01 00:22:52 +02:00
parent 422f2f40db
commit 5dc58fd77f
2 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,51 @@
# Maintainer: Martchus <martchus@gmx.net>
# 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
}

View File

@ -0,0 +1,43 @@
# Maintainer: Martchus <martchus@gmx.net>
# 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
}