summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD19
3 files changed, 15 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fc086e6ad20..2c1ef2ae918 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
pkgbase = drawio
pkgdesc = Diagram drawing application built on web technology
- pkgver = 14.9.7
+ pkgver = 16.4.5
pkgrel = 1
url = https://github.com/jgraph/drawio
arch = any
license = Apache
options = !strip
- source = draw-14.9.7.war::https://github.com/jgraph/drawio/releases/download/v14.9.7/draw.war
- sha256sums = 1e11dacb531ee52e46d85adacf9c679054cc787010d93e5783db3ebf38bcc156
+ source = draw-16.4.5.war::https://github.com/jgraph/drawio/releases/download/v16.4.5/draw.war
+ sha256sums = c42e2ba131dcc8b2bb2bf521a18f873ac6d22d02ce94b26e7571102d82780800
pkgname = drawio
diff --git a/.gitignore b/.gitignore
index 3dc2197198b..6d59220b557 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,4 @@
/src/
*.pkg.tar.*
-/draw.war
+/draw-*.war
diff --git a/PKGBUILD b/PKGBUILD
index c611d2c8d1c..8367bda6072 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,15 @@
# Maintainer: Matthew Gamble <git@matthewgamble.net>
pkgname=drawio
-pkgver=14.9.7
+pkgver=16.4.5
pkgrel=1
pkgdesc="Diagram drawing application built on web technology"
arch=("any")
url="https://github.com/jgraph/drawio"
license=("Apache")
options=(!strip)
-source=(
- "draw-${pkgver}.war::https://github.com/jgraph/drawio/releases/download/v${pkgver}/draw.war"
-)
-sha256sums=(
- "1e11dacb531ee52e46d85adacf9c679054cc787010d93e5783db3ebf38bcc156"
-)
+source=("draw-${pkgver}.war::https://github.com/jgraph/drawio/releases/download/v${pkgver}/draw.war")
+sha256sums=("c42e2ba131dcc8b2bb2bf521a18f873ac6d22d02ce94b26e7571102d82780800")
prepare() {
rm -rf META-INF WEB-INF
@@ -21,6 +17,13 @@ prepare() {
rm -f service-worker.js
sed -i '/<!--.*\[if IE\].*\[endif\]-->/d' index.html
+ sed -i '/itemprop="image".*googleusercontent/d' index.html
+ sed -i '/rel="chrome-webstore-item"/d' index.html
+ sed -i '/rel="preconnect".*googleapis\.com/d' index.html
+ sed -i '/rel="canonical".*app\.diagrams\.net/d' index.html
+ sed -i '/itemprop="image".*googleusercontent/d' teams.html
+ sed -i '/rel="chrome-webstore-item"/d' teams.html
+ sed -i '/rel="preconnect".*googleapis\.com/d' teams.html
sed -i 's/return false/return true/' disableUpdate.js
sed -i "s/'electron': 'plugins\/electron.js',//" js/diagramly/App.js
rm -f electron.js electronFilesWorker.js plugins/electron.js
@@ -30,7 +33,7 @@ package() {
install -dm755 "${pkgdir}/usr/share"
cp -r . "${pkgdir}/usr/share/draw.io"
- rm "${pkgdir}/usr/share/draw.io/draw.war"
+ rm "${pkgdir}/usr/share/draw.io/draw-${pkgver}.war"
chmod -R 0000 "${pkgdir}/usr/share/draw.io"
chmod -R u+rwX,g+rX,o+rX "${pkgdir}/usr/share/draw.io"