summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-12-29 15:05:00 +0300
committerCaleb Maclennan2020-12-29 15:05:00 +0300
commitff6a4e67b90dd61751a409a2320444f749de5771 (patch)
tree0fa2d2ab479ce689025d6399058ac9257d78bc7a
parent4d09a1aacb3593ad1abeedcb2f2d6f10f0d35aa0 (diff)
downloadaur-ff6a4e67b90dd61751a409a2320444f749de5771.tar.gz
upgpkg: marktext 0.16.3-1
upstream release
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD23
-rwxr-xr-xmarktext.sh2
3 files changed, 20 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 05295c6b701..19bcc0bc897 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,25 @@
pkgbase = marktext
pkgdesc = A simple and elegant open-source markdown editor that focused on speed and usability
- pkgver = 0.16.2
- pkgrel = 4
+ pkgver = 0.16.3
+ pkgrel = 1
url = https://marktext.app
arch = x86_64
license = MIT
makedepends = jq
- makedepends = nodejs-lts-erbium
+ makedepends = nodejs
makedepends = node-gyp
makedepends = moreutils
makedepends = yarn
makedepends = yq
- depends = electron8
+ depends = electron
depends = libxkbfile
depends = libsecret
depends = ripgrep
- source = marktext-0.16.2.tar.gz::https://github.com/marktext/marktext/archive/v0.16.2.tar.gz
+ source = marktext-0.16.3.tar.gz::https://github.com/marktext/marktext/archive/v0.16.3.tar.gz
source = marktext.sh
source = marktext-arg-handling.patch
- sha256sums = d39f3d4c3008cacdcefbe6ad9e1e19d803d3c619106878c75f8a5cc38254597c
- sha256sums = 15a964fcc3f6bd7bf1c03566d35201032aecde994446533cad1f810e9b880f14
+ sha256sums = ab7702558a09f9be5326a03ad56249378fad67138dd21261458b60d4b37191ce
+ sha256sums = c5af6eabe525af458df2ccfac6098092746dd0ae23225c131100bb6e37170f86
sha256sums = c754a1cad52d10a38eeddb9293ce0a4540296c6adbb47eb5311eaaeded150a01
pkgname = marktext
diff --git a/PKGBUILD b/PKGBUILD
index 871c875a11e..b64b00eaaf8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,18 +5,18 @@
# Contributor: dpeukert
pkgname=marktext
-pkgver=0.16.2
-pkgrel=4
+pkgver=0.16.3
+pkgrel=1
pkgdesc='A simple and elegant open-source markdown editor that focused on speed and usability'
arch=('x86_64')
url='https://marktext.app'
license=('MIT')
-depends=('electron8'
+depends=('electron'
'libxkbfile'
'libsecret'
'ripgrep')
makedepends=('jq'
- 'nodejs-lts-erbium'
+ 'nodejs'
'node-gyp'
'moreutils'
'yarn'
@@ -24,14 +24,14 @@ makedepends=('jq'
source=("$pkgname-$pkgver.tar.gz::https://github.com/marktext/marktext/archive/v${pkgver}.tar.gz"
"$pkgname.sh"
"$pkgname-arg-handling.patch")
-sha256sums=('d39f3d4c3008cacdcefbe6ad9e1e19d803d3c619106878c75f8a5cc38254597c'
- '15a964fcc3f6bd7bf1c03566d35201032aecde994446533cad1f810e9b880f14'
+sha256sums=('ab7702558a09f9be5326a03ad56249378fad67138dd21261458b60d4b37191ce'
+ 'c5af6eabe525af458df2ccfac6098092746dd0ae23225c131100bb6e37170f86'
'c754a1cad52d10a38eeddb9293ce0a4540296c6adbb47eb5311eaaeded150a01')
-_electronDist=$(dirname $(realpath $(which electron8)))
-_electronVersion=$(electron8 --version | sed -e 's/^v//')
prepare() {
+ local _electronDist=$(dirname $(realpath $(which electron)))
+ local _electronVersion=$(electron --version | sed -e 's/^v//')
cd "$pkgname-$pkgver"
jq 'del(.devDependencies["electron"], .scripts["preinstall", "postinstall"])' \
package.json | sponge package.json
@@ -39,16 +39,17 @@ prepare() {
electron-builder.yml | sponge electron-builder.yml
mkdir -p "$srcdir/node_modules"
yarn --cache-folder "$srcdir/node_modules" install --frozen-lockfile
- yarn --cache-folder "$srcdir/node_modules" add -D -E --no-lockfile --ignore-scripts electron@$_electronVersion
+ yarn --cache-folder "$srcdir/node_modules" add -D --no-lockfile --ignore-scripts electron@$_electronVersion
patch -p1 < "$srcdir/$pkgname-arg-handling.patch"
}
build() {
cd "$pkgname-$pkgver"
- yarn --cache-folder "$srcdir/node_modules" run electron-rebuild
+ yarn --cache-folder "$srcdir/node_modules" run \
+ electron-rebuild
node .electron-vue/build.js
yarn --cache-folder "$srcdir/node_modules" run \
- electron-builder --linux --x64 --dir dist
+ electron-builder --linux --x64 --dir
}
package() {
diff --git a/marktext.sh b/marktext.sh
index 8943d1e0d41..8bfc08fdf0e 100755
--- a/marktext.sh
+++ b/marktext.sh
@@ -1,3 +1,3 @@
#!/usr/bin/env sh
-exec electron8 /usr/lib/marktext/app.asar "$@"
+exec electron /usr/lib/marktext/app.asar "$@"