summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatthew Gamble2022-01-24 00:11:52 +1100
committerMatthew Gamble2022-01-24 00:11:52 +1100
commit55878b17a71d85aca2cc91954d33f04acfabd561 (patch)
tree0ee17bf76732e890d7842bd16e92d9779e4fe802 /PKGBUILD
parent93f527086c75ddb41934ff71919b757c4d13db0a (diff)
downloadaur-55878b17a71d85aca2cc91954d33f04acfabd561.tar.gz
Update to latest release
Sorry about the issues with packaging the previous release.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c611d2c8d1c6..8367bda60724 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"