PKG_NAME = jappix
PKG_VERS = 1.0.1
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/jappix/jappix/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

HOMEPAGE = https://github.com/jappix/jappix/wiki
COMMENT  = Jappix, a full-featured XMPP web-client (Jappix Desktop, Jappix Mobile & Jappix Mini). Jappix is a fresh new open social platform which enables you to create your own cloud, wherever you want to. People must be able to get in touch with all their friends on a free decentralized network!
LICENSE  = AGPL

EXTRACT_PATH = $(WORK_DIR)/$(PKG_DIR)
INSTALL_TARGET = jappix_install

# Pure PHP package, make sure ARCH is not defined
override ARCH=

include ../../mk/spksrc.cross-install.mk

.PHONY: jappix_install
jappix_install:
	mkdir -p $(STAGING_INSTALL_PREFIX)/share/jappix
	tar -cf - -C $(WORK_DIR)/$(PKG_DIR)/$(PKG_DIR) . | tar -xf - -C $(STAGING_INSTALL_PREFIX)/share/jappix
