# This file is part of MXE.
# See index.html for further information.
PKG := qbittorrent
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.3.4
$(PKG)_CHECKSUM := c0d0d4b72c240f113b59a061146803bc1b7926d3d7f39b06b50a4d26f5ad91b8
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libtorrent-rasterbar qt boost
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.qbittorrent.org/download.php' | \
$(SED) -n 's,.*qbittorrent-\([0-9][^"]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && \
QMAKE_LRELEASE='$(PREFIX)/$(TARGET)/qt/bin/lrelease' \
./configure \
$(MXE_CONFIGURE_OPTS) \
--with-qt4=yes \
--with-boost='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)'
cp '$(1)'/src/release/qbittorrent.exe '$(PREFIX)/$(TARGET)/bin/'
endef
$(PKG)_BUILD_SHARED =