summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Doppler2018-05-01 10:52:19 +0200
committerSimon Doppler2018-05-01 10:52:19 +0200
commitb59706ce30d718308352febf801303a966e29a8e (patch)
tree13aa2394658e770ac3221df7cfbbdbed41c6fcc7
downloadaur-b59706ce30d718308352febf801303a966e29a8e.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD54
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7af8006e807
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Tue May 1 08:51:48 UTC 2018
+pkgbase = marktext-git
+ pkgdesc = Next generation markdown editor
+ pkgver = r461.8399cbe
+ pkgrel = 1
+ url = https://marktext.github.io/website/
+ arch = x86
+ arch = x86_64
+ license = MIT
+ makedepends = npm
+ depends = gconf
+ depends = gtk3
+ depends = libxss
+ depends = nss
+ source = git+https://github.com/marktext/marktext
+ sha512sums = SKIP
+
+pkgname = marktext-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..378fe3bae57
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.tar.gz
+*.pkg.tar.xz
+src
+pkg
+marktext
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fef3fdd79a8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Simon Doppler (dopsi) <dop.simon@gmail.com>
+_gitname=marktext
+pkgname=marktext-git
+pkgver=r461.8399cbe
+pkgrel=1
+pkgdesc='Next generation markdown editor'
+arch=('x86' 'x86_64')
+url='https://marktext.github.io/website/'
+license=('MIT')
+depends=('gconf' 'gtk3' 'libxss' 'nss')
+makedepends=('npm')
+source=("git+https://github.com/${_gitname}/${_gitname}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_gitname}"
+ npm install --cache "${srcdir}/npm-cache"
+ npm run release:linux
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+
+ install -D "build/linux-unpacked/snapshot_blob.bin" "$pkgdir/usr/lib/$pkgname/snapshot_blob.bin"
+ install -D "build/linux-unpacked/content_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/content_resources_200_percent.pak"
+ install -D "build/linux-unpacked/content_shell.pak" "$pkgdir/usr/lib/$pkgname/content_shell.pak"
+ install -D "build/linux-unpacked/icudtl.dat" "$pkgdir/usr/lib/$pkgname/icudtl.dat"
+ install -D "build/linux-unpacked/libffmpeg.so" "$pkgdir/usr/lib/$pkgname/libffmpeg.so"
+ install -D "build/linux-unpacked/libnode.so" "$pkgdir/usr/lib/$pkgname/libnode.so"
+ cp -r "build/linux-unpacked/locales" "$pkgdir/usr/lib/$pkgname/locales"
+ install -D "build/linux-unpacked/marktext" "$pkgdir/usr/lib/$pkgname/marktext"
+ install -D "build/linux-unpacked/natives_blob.bin" "$pkgdir/usr/lib/$pkgname/natives_blob.bin"
+ install -D "build/linux-unpacked/pdf_viewer_resources.pak" "$pkgdir/usr/lib/$pkgname/pdf_viewer_resources.pak"
+ cp -r "build/linux-unpacked/resources" "$pkgdir/usr/lib/$pkgname/resources"
+ install -D "build/linux-unpacked/ui_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/ui_resources_200_percent.pak"
+ install -D "build/linux-unpacked/blink_image_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/blink_image_resources_200_percent.pak"
+ install -D "build/linux-unpacked/views_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/views_resources_200_percent.pak"
+
+ # Symlink main binary
+ install -d "${pkgdir}/usr/bin"
+ ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+
+ # Install license file
+ install -D LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+ install -D build/linux-unpacked/LICENSE.electron.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.electron.txt"
+ install -D build/linux-unpacked/LICENSES.chromium.html "$pkgdir/usr/share/licenses/$pkgname/LICENSES.chromium.html"
+}
+
+# vim:ts=4:sw=4:expandtab