43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'MEGAcmd'
|
|
pkgname=MEGAcmd
|
|
version=0.9.9
|
|
revision=1
|
|
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"
|
|
short_desc="Command Line Interactive and Scriptable Application to access MEGA"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="BSD-2-Clause, GPL-3.0-or-later"
|
|
homepage="https://github.com/meganz/MEGAcmd"
|
|
distfiles="https://github.com/meganz/MEGAcmd/archive/${version}.tar.gz"
|
|
checksum=5ace7c85fa817a357bdb968f32e3839439d3ff4e3066d7db470b4648def11105
|
|
replaces="megacmd>=0"
|
|
|
|
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
|
|
}
|