2017-11-25 21:06:27 +01:00
|
|
|
# Template file for 'MEGAsdk'
|
|
|
|
pkgname=MEGAsdk
|
2018-11-29 08:41:45 +01:00
|
|
|
version=3.4.4
|
|
|
|
revision=1
|
2017-11-25 21:06:27 +01:00
|
|
|
wrksrc=sdk-${version}
|
|
|
|
build_style=gnu-configure
|
2018-02-26 23:56:32 +01:00
|
|
|
configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
|
2017-11-25 21:06:27 +01:00
|
|
|
make_build_args='LIBTOOLFLAGS="--tag=CXX"'
|
|
|
|
hostmakedepends="autogen doxygen autoconf automake gettext libtool"
|
|
|
|
makedepends="libcurl-devel c-ares-devel libressl-devel crypto++-devel
|
|
|
|
zlib-devel sqlite-devel freeimage-devel libsodium-devel fuse-devel
|
2018-02-26 23:56:32 +01:00
|
|
|
libuv-devel $(vopt_if mediainfo libmediainfo-devel)"
|
2017-11-25 21:06:27 +01:00
|
|
|
checkdepends="gtest-devel"
|
|
|
|
short_desc="The official client for cloud service mega.nz"
|
|
|
|
maintainer="John <johnz@posteo.net>"
|
2018-07-04 18:02:19 +02:00
|
|
|
license="BSD-2-Clause"
|
2017-11-25 21:06:27 +01:00
|
|
|
homepage="https://mega.nz"
|
|
|
|
distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
|
2018-11-29 08:41:45 +01:00
|
|
|
checksum=41ad3241f04bec8e0bb349a9373fc2777a33d863f656fe07157f7363c3c244de
|
2017-11-25 21:06:27 +01:00
|
|
|
replaces="libmega>=0"
|
|
|
|
|
2018-02-26 23:56:32 +01:00
|
|
|
build_options="libuv mediainfo"
|
2017-11-25 21:06:27 +01:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2018-06-19 21:00:15 +02:00
|
|
|
*-musl) build_options_default="libuv";;
|
2018-02-26 23:56:32 +01:00
|
|
|
*) build_options_default="libuv mediainfo";;
|
2017-11-25 21:06:27 +01:00
|
|
|
esac
|
|
|
|
|
2018-06-19 21:00:15 +02:00
|
|
|
do_check() {
|
|
|
|
: #requires static gtest libs
|
|
|
|
}
|
|
|
|
|
2017-11-25 21:06:27 +01:00
|
|
|
pre_configure() {
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
MEGAsdk-qt_package() {
|
|
|
|
depends="MEGAsdk>=${version}_${revision}"
|
|
|
|
short_desc+=" - qt bindings"
|
|
|
|
pkg_install() {
|
|
|
|
for _f in ${wrksrc}/bindings/qt/*.{h,cpp,pri}; do
|
|
|
|
vinstall ${_f} 644 usr/share/MEGAsdk/bindings/qt
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MEGAsdk-devel_package() {
|
|
|
|
depends="MEGAsdk>=${version}_${revision} libcurl-devel crypto++-devel c-ares-devel
|
2018-02-26 23:56:32 +01:00
|
|
|
sqlite-devel freeimage-devel libsodium-devel $(vopt_if libuv libuv-devel)
|
|
|
|
$(vopt_if mediainfo libmediainfo-devel)"
|
2017-11-25 21:06:27 +01:00
|
|
|
short_desc+=" - development files"
|
|
|
|
replaces="libmega-devel>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|