void-packages/srcpkgs/megacmd/template
2017-11-18 17:24:59 +01:00

47 lines
1.3 KiB
Bash

# Template file for 'megacmd'
pkgname=megacmd
version=3.2.7
revision=1
wrksrc=sdk-${version}
build_style=gnu-configure
make_build_args='LIBTOOLFLAGS="--tag=CXX"'
hostmakedepends="base-devel autogen doxygen"
makedepends="libcurl-devel c-ares-devel libressl-devel crypto++-devel
zlib-devel sqlite-devel freeimage-devel readline-devel libsodium-devel
pcre-devel pcre2-devel libuv-devel fuse-devel"
depends="pcre libpcrecpp c-ares libcurl libsodium sqlite freeimage libressl crypto++"
short_desc="The official client for cloud service mega.nz"
maintainer="jbgg <jbosco.gg@gmail.com>"
license="2-clause-BSD"
homepage="https://mega.nz"
distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
checksum=fc0bab64a45f01988b5c9956047f4e5037608ec7c39d6c2e661dfa33020c8ac1
case "$XBPS_TARGET_MACHINE" in
aarch64*) broken="https://travis-ci.org/voidlinux/void-packages/jobs/281616641";;
esac
pre_configure() {
./autogen.sh
}
post_install() {
vlicense LICENSE
}
libmega_package() {
short_desc="Library for the cloud service mega.nz"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libmega-devel_package() {
depends="libmega>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}