summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 64b4e18c9ed..8367bda6072 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,15 @@
# Maintainer: Matthew Gamble <git@matthewgamble.net>
pkgname=drawio
-pkgver=14.9.3
+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=(
- "23db4634e623f27958e5fca57c5963e15d6f0aa5731704e2c9f1aa41e3c67dab"
-)
+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"