From b2b5f993683db4e4f9cd466210b1c536527e7f3c Mon Sep 17 00:00:00 2001 From: Francesco Tamagni Date: Mon, 23 Oct 2017 10:24:55 +0200 Subject: [PATCH] Add ggpack io plugin (#58) --- db/ggpack | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 db/ggpack diff --git a/db/ggpack b/db/ggpack new file mode 100644 index 0000000000..defa1c0329 --- /dev/null +++ b/db/ggpack @@ -0,0 +1,21 @@ +R2PM_BEGIN + +R2PM_GIT "https://github.com/mrmacete/r2-ggpack" +R2PM_DESC "[r2-io] Read and edit ThimbleweedPark ggpack data files" + +R2PM_INSTALL() { + mkdir -p "${R2PM_ETCD}" || exit 1 + ${MAKE} clean + ${MAKE} || exit 1 + cp *.${LIBEXT} "${R2PM_PLUGDIR}" || exit 1 + echo '$ggimport=#!pipe python '"'$(pwd)'"'/ggimport.py' > "${R2PM_ETCD}/ggimport" || exit 1 + echo '$ggexport=#!pipe python '"'$(pwd)'"'/ggexport.py' > "${R2PM_ETCD}/ggexport" || exit 1 +} + +R2PM_UNINSTALL() { + rm -f "${R2PM_ETCD}"/ggimport + rm -f "${R2PM_ETCD}"/ggexport + rm -f ${R2PM_PLUGDIR}/*ggpack* +} + +R2PM_END