PKGBUILDs/libfilezilla/mingw-w64/PKGBUILD

48 lines
1.6 KiB
Bash
Raw Normal View History

2016-06-01 00:22:52 +02:00
# 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.12.2
2016-06-01 00:22:52 +02:00
pkgrel=1
pkgdesc='Small and modern C++ library, offering some basic functionality to build high-performing, platform-independent programs (mingw-w64)'
2016-06-01 00:22:52 +02:00
arch=('any')
url='https://filezilla-project.org/'
2016-06-01 00:22:52 +02:00
license=('GPL')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-configure')
options=(staticlibs !strip !buildflags !makeflags)
2016-06-01 00:22:52 +02:00
install=
2017-04-19 16:40:47 +02:00
source=("http://download.filezilla-project.org/libfilezilla/libfilezilla-$pkgver.tar.bz2")
md5sums=('79c95ee58bc8db2fa3690a36ece25a6d')
2016-06-01 00:22:52 +02:00
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "${srcdir}/${_name}-${pkgver}"
autoreconf -i
}
build() {
2016-07-19 15:47:13 +02:00
export CXXFLAGS='-O0'
2016-06-01 00:22:52 +02:00
for _arch in ${_architectures}; do
mkdir -p "${srcdir}/${_name}-${pkgver}/build-${_arch}" && cd "${srcdir}/${_name}-${pkgver}/build-${_arch}"
2016-07-29 18:08:04 +02:00
${_arch}-configure --disable-shared
# shared build doesn't work because 'fz::simple_event<fz::timer_event_type, unsigned long long>::type()'
# is not exportet correctly
2016-06-01 00:22:52 +02:00
make
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/${_name}-${pkgver}/build-${_arch}"
make DESTDIR="${pkgdir}" install
find "${pkgdir}/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip --strip-all {} \;
find "${pkgdir}/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
find "${pkgdir}/usr/${_arch}" -name '*.a' -exec ${_arch}-strip -g {} \;
2016-06-01 00:22:52 +02:00
done
}