--- /dev/null
+include /usr/share/dpkg/pkg-info.mk
+
+PACKAGE=libjs-sencha-touch
+
+BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
+ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
+
+DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
+DSC=$(PACKAGE)_$(DEB_VERSION).dsc
+
+all: deb
+
+$(BUILDDIR): debian src
+ rm -rf $@ $@.tmp
+ cp -a src $@.tmp
+ rm -rf $@.tmp/examples
+ rm -f $@.tmp/build.xml
+ cp -a debian/ $@.tmp/debian
+ echo "git clone git://git.proxmox.com/git/sencha-touch.git\\ngit checkout $$(git rev-parse HEAD)" > $@.tmp/debian/SOURCE
+ mv $@.tmp $@
+
+.PHONY: deb
+deb: $(DEB)
+$(DEB): $(BUILDDIR)
+ cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
+ lintian $@
+
+$(ORIG_SRC_TAR): $(BUILDDIR)
+ tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
+
+.PHONY: dsc
+dsc: clean
+ $(MAKE) $(DSC)
+ lintian $(DSC)
+
+$(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
+ cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
+
+sbuild: $(DSC)
+ sbuild $(DSC)
+
+.PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
+upload: $(DEB)
+ tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)
+
+.PHONY: distclean clean
+distclean: clean
+clean:
+ rm -rf $(PACKAGE)-[0-9]*/ *.deb *.changes *.buildinfo *.build *.tar.?z *.dsc
+
+.PHONY: dinstall
+dinstall: $(DEB)
+ dpkg -i $(DEB)
--- /dev/null
+Source: libjs-sencha-touch
+Section: web
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper-compat (= 12),
+Standards-Version: 4.6.1
+Homepage: https://www.sencha.com/
+
+Package: libjs-sencha-touch
+Architecture: all
+Depends: ${misc:Depends},
+Description: Cross-browser JavaScript library for mobile
+ Sencha Touch is a cross-browser JavaScript library for building rich internet
+ applications for the mobile web.
--- /dev/null
+Top-level debian/ & Makefile packaging und build-sys;
+
+ Copyright (C) 2023 Proxmox Server Solutions GmbH
+ License: AGPL-3.0-or-later
+
+For the Sencha Touch JavaScript Framework (GPLv3 variant) the following was
+copied in verbatim form the projects license.txt, for the full text of the GPL
+v3 please see /usr/share/common-licenses/GPL-3
+
+Sencha Touch & Sencha Touch Charts - JavaScript Libraries
+Copyright (c) 2010-2015, Sencha, Inc.
+All rights reserved.
+licensing@sencha.com
+
+http://www.sencha.com/products/touch/license.php
+
+
+Open Source License
+------------------------------------------------------------------------------------------
+This version of Sencha Touch and Sencha Touch Charts is licensed under the terms of the Open
+Source GPL 3.0 license.
+
+http://www.gnu.org/licenses/gpl.html
+
+There are several FLOSS exceptions available for use with this release for
+open source applications that are distributed under a license other than the GPL.
+
+* Open Source License Exception for Applications
+
+ http://www.sencha.com/products/floss-exception.php
+
+* Open Source License Exception for Development
+
+ http://www.sencha.com/products/ux-exception.php
+
+
+Alternate Licensing for Sencha Touch
+------------------------------------------------------------------------------------------
+Commercial and OEM Licenses are available for an alternate download of Sencha Touch.
+This is the appropriate option if you are creating proprietary applications and you are
+not prepared to distribute and share the source code of your application under the
+GPL v3 license. Please visit http://www.sencha.com/store/touch/license.php for more details.
+
+
+Alternate Licensing for Sencha Touch Charts
+------------------------------------------------------------------------------------------
+Commercial and OEM Licenses are available for an alternate download of Sencha Touch Charts.
+This is the appropriate option if you are creating proprietary applications and you are
+not prepared to distribute and share the source code of your application under the
+GPL v3 license.
+
+Sencha Touch Charts is available commercially only as a part of Sencha Complete or Sencha
+Complete Team. Please visit http://www.sencha.com/products/complete/license or
+http://www.sencha.com/products/complete-team/license for more details.
+
+
+Third Party Content
+------------------------------------------------------------------------------------------
+The following third party software is distributed with Sencha Touch and is
+provided under other licenses and/or has source available from other locations.
+
+Library: JSON parser
+License: Public Domain
+Location: http://www.JSON.org/js.html
+
+Library: flexible-js-formatting - date parsing and formatting
+License: MIT
+Location: http://code.google.com/p/flexible-js-formatting/
+
+Library: Jasmine Š unit testing
+License: MIT
+Location: https://github.com/pivotal/jasmine
+
+
+--
+
+THIS SOFTWARE IS DISTRIBUTED "AS-IS" WITHOUT ANY WARRANTIES, CONDITIONS AND
+REPRESENTATIONS WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE
+IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, MERCHANTABLE QUALITY,
+FITNESS FOR A PARTICULAR PURPOSE, DURABILITY, NON-INFRINGEMENT, PERFORMANCE AND
+THOSE ARISING BY STATUTE OR FROM CUSTOM OR USAGE OF TRADE OR COURSE OF DEALING.