2017-11-25 23:45:35 +01:00
|
|
|
# Template file for 'MEGAcmd'
|
|
|
|
pkgname=MEGAcmd
|
2018-01-05 12:46:47 +01:00
|
|
|
version=0.9.7
|
|
|
|
revision=1
|
2017-11-25 23:45:35 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
make_build_args='LIBTOOLFLAGS="--tag=CXX"'
|
|
|
|
hostmakedepends="autoconf-archive autogen gettext automake libtool pkg-config"
|
|
|
|
makedepends="MEGAsdk-devel readline-devel pcre-devel"
|
2017-12-21 12:46:43 +01:00
|
|
|
short_desc="Command Line Interactive and Scriptable Application to access MEGA"
|
2017-11-25 23:45:35 +01:00
|
|
|
maintainer="John <johnz@posteo.net>"
|
|
|
|
license="BSD-2"
|
|
|
|
homepage="https://github.com/meganz/MEGAcmd"
|
|
|
|
distfiles="https://github.com/meganz/MEGAcmd/archive/${version}.tar.gz"
|
2018-01-05 12:46:47 +01:00
|
|
|
checksum=791fe292b077d0fe11635a8a24bd3d5f3846ed5a0ea675bd05d5ae10d86a675b
|
2017-11-25 23:45:35 +01:00
|
|
|
replaces="megacmd>=0"
|
|
|
|
|
2018-01-08 03:00:59 +01:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
aarch64*) broken="https://build.voidlinux.eu/builders/aarch64-musl_builder/builds/7450/steps/shell_3/logs/stdio" ;;
|
|
|
|
esac
|
|
|
|
|
2017-11-25 23:45:35 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
sed \
|
|
|
|
-e '/SUBDIRS.*sdk/d' \
|
|
|
|
-e '/sdk\/m4/d' \
|
|
|
|
-e 's:LMEGAINC=.*:PKG_CHECK_MODULES([MEGA],[libmega])\nLMEGAINC=${MEGA_CFLAGS}:' \
|
|
|
|
-i Makefile.am configure.ac
|
|
|
|
sed \
|
|
|
|
-e 's:\$(top_builddir)/sdk/src/libmega\.la:$(MEGA_LIBS):' \
|
|
|
|
-e 's:mega_cmd_LDADD = .*:&$(MEGA_LIBS):' \
|
|
|
|
-e 's:^mega_exec_CXXFLAGS.*:&\nmega_exec_LDADD=$(MEGA_LIBS):' \
|
|
|
|
-e 's:sdk/include/mega/[^ ]\+\.h::g' \
|
|
|
|
-e '/sdk\/src\/[^ ]\+\.cpp/d' \
|
|
|
|
-i src/include.am
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|