62 lines
1.7 KiB
Bash
62 lines
1.7 KiB
Bash
# Template file for 'MEGAsdk'
|
|
pkgname=MEGAsdk
|
|
version=3.4.8
|
|
revision=1
|
|
wrksrc="sdk-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
|
|
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
|
|
libuv-devel $(vopt_if mediainfo libmediainfo-devel)"
|
|
checkdepends="gtest-devel"
|
|
short_desc="Official client for cloud service mega.nz"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://mega.nz"
|
|
distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
|
|
checksum=26f89d7f253e821dd8c46a46a382e3664bc8398b4750c8703be0888c1c3b10a3
|
|
replaces="libmega>=0"
|
|
|
|
build_options="libuv mediainfo"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) build_options_default="libuv";;
|
|
*) build_options_default="libuv mediainfo";;
|
|
esac
|
|
|
|
do_check() {
|
|
: #requires static gtest libs
|
|
}
|
|
|
|
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
|
|
sqlite-devel freeimage-devel libsodium-devel $(vopt_if libuv libuv-devel)
|
|
$(vopt_if mediainfo libmediainfo-devel)"
|
|
short_desc+=" - development files"
|
|
replaces="libmega-devel>=0"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|