--- /dev/null
+PACKAGE=libjs-extjs
+PKGVER=6.0.1
+PKGREL=1
+
+DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
+
+# EXTJSDIR=ext-6.0.1
+# wget http://cdn.sencha.com/ext/gpl/ext-6.0.1-gpl.zip
+# unzip ext-6.0.1-gpl.zip
+
+EXTDATA= \
+ extjs/build/ext-all.js \
+ extjs/build/ext-all-debug.js \
+ extjs/build/packages/charts/classic/charts.js \
+ extjs/build/packages/charts/classic/charts-debug.js \
+
+EXT_THEME= \
+ extjs/build/classic/theme-crisp \
+ extjs/build/packages/charts/classic/crisp \
+
+DESTDIR=
+
+WWWEXT6DIR=${DESTDIR}/usr/share/javascript/extjs
+
+all: ${EXTDATA}
+
+.PHONY: deb
+deb ${DEB}:
+ rm -rf build
+ rsync -a * build
+ cp extjs/licenses/license.txt build/debian/copyright
+ cd build; dpkg-buildpackage -b -us -uc
+ lintian -X copyright-file ${DEB}
+
+.PHONY: install
+install: ${EXTDATA}
+ install -d ${WWWEXT6DIR}
+ install -m 0644 ${EXTDATA} ${WWWEXT6DIR}
+ cp -a extjs/build/classic/locale ${WWWEXT6DIR}
+ cp -a ${EXT_THEME} ${WWWEXT6DIR}
+ chown -R www-data:www-data ${WWWEXT6DIR}
+
+.PHONY: upload
+upload: ${DEB}
+ tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
+clean:
+ rm -rf ./build *.deb *.changes *.buildinfo
+ find . -name '*~' -exec rm {} ';'
+
+.PHONY: dinstall
+dinstall: ${DEB}
+ dpkg -i ${DEB}
--- /dev/null
+Source: libjs-extjs
+Section: web
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.4
+Homepage: https://www.sencha.com/
+
+Package: libjs-extjs
+Architecture: all
+Depends: ${misc:Depends}
+Description: cross-browser JavaScript library
+ Ext JS is a cross-browser JavaScript library for building rich internet
+ applications.