New package: MEGAcmd-0.9.6
This commit is contained in:
parent
2833ebb365
commit
08a5934830
2 changed files with 53 additions and 0 deletions
11
srcpkgs/MEGAcmd/patches/include.am.patch
Normal file
11
srcpkgs/MEGAcmd/patches/include.am.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/include.am.orig 2017-12-01 23:56:36.199044786 +0100
|
||||
+++ src/include.am 2017-12-01 23:56:54.073045467 +0100
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
MEGACMD = mega-cmd mega-exec mega-cmd-server
|
||||
bin_PROGRAMS += $(MEGACMD)
|
||||
-$(MEGACMD): $(MEGA_LIBS)
|
||||
+$(MEGACMD):
|
||||
noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
|
||||
megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
|
||||
megacmdcompletion_DATA = src/client/megacmd_completion.sh
|
42
srcpkgs/MEGAcmd/template
Normal file
42
srcpkgs/MEGAcmd/template
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Template file for 'MEGAcmd'
|
||||
pkgname=MEGAcmd
|
||||
version=0.9.6
|
||||
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="BSD-2"
|
||||
maintainer="John <johnz@posteo.net>"
|
||||
license="BSD-2"
|
||||
homepage="https://github.com/meganz/MEGAcmd"
|
||||
distfiles="https://github.com/meganz/MEGAcmd/archive/${version}.tar.gz"
|
||||
checksum=234a8376158f5d83474f09feea9338f56bdacbad83fde04be7fa6b261fddf3e2
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue