Package Details: marktext 0.17.1-4

Git Clone URL: https://aur.archlinux.org/marktext.git (read-only, click to copy)
Package Base: marktext
Description: A simple and elegant open-source markdown editor that focused on speed and usability
Upstream URL: https://www.marktext.cc
Keywords: editor electron markdown note
Licenses: MIT
Submitter: dopsi
Maintainer: alerque
Last Packager: alerque
Votes: 26
Popularity: 0.000000
First Submitted: 2018-05-01 08:22 (UTC)
Last Updated: 2024-03-28 00:15 (UTC)

Pinned Comments

alerque commented on 2023-11-02 11:09 (UTC)

PSA: The build process for this package is known to be broken because it requires older versions of stuff than is available in Arch now. The only way I know of to install it is to use packages that were built back when the npm in Arch was older. You can use my user repository to get the latest successful build.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7

dbirks commented on 2019-05-15 13:22 (UTC)

I changed it to build with yarn (thanks @alf!). I also changed it to use the system's shared electron, to save on space when many electron apps are installed. Looks like it saves 100+ MB on the installed size :)

alf commented on 2019-04-15 16:06 (UTC) (edited on 2019-04-15 16:08 (UTC) by alf)

hi, here is my PKGBUILD

notice that I use git to reduce download and build with yarn run build:dir to reduce build time by skipping unnecessary package

astro commented on 2019-01-04 14:45 (UTC)

Hi, same error : ==> Starting package()... install: cannot stat 'build/linux-unpacked/snapshot_blob.bin': No such file or directory ==> ERROR: A failure occurred in package(). Aborting...

Maybe the error is this path ?? : install -D "build/linux-unpacked/snapshot_blob.bin" "$pkgdir/usr/lib/$pkgname/snapshot_blob.bin"

faasie commented on 2019-01-03 02:01 (UTC)

@paapereira - I, too, am having the same issue with the snapshot_blob.bin.

==> Starting package()...
install: cannot stat 'build/linux-unpacked/snapshot_blob.bin': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

paapereira commented on 2019-01-02 20:37 (UTC) (edited on 2019-01-02 20:38 (UTC) by paapereira)

I'm updating from 0.12.25-2 to 0.13.53-1, but I'm having the following error. Any ideia if it's my system or the package? Anyone else with the same issue?

$ makepkg -sri

(...)

 OKAY  take it away `electron-builder`

  • electron-builder version=20.28.4
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=build/builder-effective-config.yaml
  • no native production dependencies
  • packaging       platform=linux arch=x64 electron=3.0.5 appOutDir=build/linux-unpacked
  • building        target=AppImage arch=x64 file=build/marktext-0.13.53-x86_64.AppImage
  • building        target=tar.gz arch=x64 file=build/marktext-0.13.53.tar.gz
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat 'build/linux-unpacked/snapshot_blob.bin': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

dopsi commented on 2018-06-27 20:01 (UTC)

@dpeukert: thanks for the updated PKGBUILD, I added it

dpeukert commented on 2018-06-26 16:49 (UTC) (edited on 2018-06-26 16:50 (UTC) by dpeukert)

Updated PKGBUILD to the newest version of Marktext and added a desktop file and an icon

# Maintainer: Simon Doppler (dopsi) <dop.simon@gmail.com>
pkgname=marktext
pkgver=0.12.25
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=("${pkgname}-${pkgver}.tar.gz::http://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('46c961bcb89aed13aa0d9c46ec22a20c728ff8880d758fdaf595671864f30d11aa04cf96d4c15a9066ba51a89f9c0b774ed4bd72b6a1fe42aa9604a8b75ccbeb')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    npm install --cache "${srcdir}/npm-cache"
    npm run release:linux
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    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"

    # Install desktop file and icon
    install -D "build/linux-unpacked/blink_image_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/blink_image_resources_200_percent.pak"
    install -D "resources/linux/marktext.desktop" "$pkgdir/usr/share/applications/marktext.desktop"
    install -D "build/.icon-set/icon_512x512.png" "$pkgdir/usr/share/pixmaps/marktext.png"
}

# vim:ts=4:sw=4:expandtab