summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastiaan Lokhorst2019-10-25 23:49:59 +0200
committerSebastiaan Lokhorst2019-10-25 23:50:20 +0200
commit0c4884d24f1a92634bc0e90ec7165e99442cea7b (patch)
tree26f2d0bd4f08b96aad5c31e3b7435fa0fb7353eb
parentee8bcedf406504cc4f4d7b28867b93ea7d9da9cf (diff)
downloadaur-0c4884d24f1a92634bc0e90ec7165e99442cea7b.tar.gz
Install app.asar.unpacked to fix runtime error
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD34
2 files changed, 22 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 224a1cb222a..5b2519b0935 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = marktext
pkgdesc = A simple and elegant open-source markdown editor that focused on speed and usability
pkgver = 0.15.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/marktext/marktext
arch = x86_64
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 941a4f94b91..d1774ac25e8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
-# Maintainer: David Birks <david@tellus.space>
+# Contributor: David Birks <david@tellus.space>
# Contributor: Simon Doppler (dopsi) <dop.simon@gmail.com>
# Contributor: dpeukert
pkgname=marktext
pkgver=0.15.1
-pkgrel=1
+pkgrel=2
pkgdesc='A simple and elegant open-source markdown editor that focused on speed and usability'
arch=('x86_64')
url='https://github.com/marktext/marktext'
@@ -18,21 +18,29 @@ sha512sums=('d78954493c0035f6d7b85b84798bf1bb6093fc276f2b9d50e1cf78d32dbc72a0629
'8927cea6815420206982263d80fa54bbcfcc37623008b6a2f25d16782cfdff70ef44c3dbc142e2c45b474df52f216e7d58cf556a525df0683bc447481ab7b27d')
prepare() {
- cd "$srcdir/$pkgname-$pkgver"
- yarn install
+ cd "$srcdir/$pkgname-$pkgver"
+ yarn install
}
build() {
- cd "$srcdir/$pkgname-$pkgver"
- yarn run build
+ cd "$srcdir/$pkgname-$pkgver"
+ yarn run build
}
package() {
- # Install app.asar and launcher script
- install -D "$srcdir/$pkgname-$pkgver/build/linux-unpacked/resources/app.asar" "$pkgdir/usr/share/marktext/app.asar"
- install -D "$srcdir/marktext.sh" "$pkgdir/usr/bin/$pkgname"
+ cd "$srcdir/$pkgname-$pkgver"
- # Install desktop file and icon
- install -D "$srcdir/$pkgname-$pkgver/resources/linux/marktext.desktop" "$pkgdir/usr/share/applications/marktext.desktop"
- install -D "$srcdir/$pkgname-$pkgver/resources/icons/icon.png" "$pkgdir/usr/share/pixmaps/marktext.png"
-}
+ # Install app.asar and launcher script
+ install -D build/linux-unpacked/resources/app.asar "${pkgdir}/usr/share/marktext/app.asar"
+ cp -r build/linux-unpacked/resources/app.asar.unpacked "${pkgdir}/usr/share/marktext/app.asar.unpacked"
+ install -D "${srcdir}/marktext.sh" "${pkgdir}/usr/bin/marktext"
+
+ # Install desktop file and icon
+ install -D resources/linux/marktext.desktop "${pkgdir}/usr/share/applications/marktext.desktop"
+ install -D resources/icons/icon.png "${pkgdir}/usr/share/pixmaps/marktext.png"
+
+ # Install license file
+ install -D LICENSE "${pkgdir}/usr/share/licenses/marktext/LICENSE"
+ install -D build/linux-unpacked/LICENSE.electron.txt "${pkgdir}/usr/share/licenses/marktext/LICENSE.electron.txt"
+ install -D build/linux-unpacked/LICENSES.chromium.html "${pkgdir}/usr/share/licenses/marktext/LICENSES.chromium.html"
+} \ No newline at end of file