Package Details: marktext-bin 0.16.3-2

Git Clone URL: https://aur.archlinux.org/marktext-bin.git (read-only, click to copy)
Package Base: marktext-bin
Description: A simple and elegant open-source markdown editor that focused on speed and usability
Upstream URL: https://marktext.app
Keywords: markdown marktext
Licenses: MIT
Conflicts: marktext
Provides: marktext
Submitter: alf
Maintainer: caleb
Last Packager: caleb
Votes: 13
Popularity: 0.046550
First Submitted: 2019-04-12 16:08
Last Updated: 2021-01-08 08:54

Latest Comments

1 2 Next › Last »

Alex-Kim commented on 2021-01-08 09:21

I had the same problem with Manjaro. I think pamac showed a dialog asking something about /usr/bin directory but I blindly accepted that :D It turned out it backed up this directory under bin.old name and then made the bin symblink to Marktext. I removed the bin symblink and renamed bin.old -> bin and the system was able to boot again.

caleb commented on 2021-01-08 08:53

@trevdev Fixed. The package had a symblink /usr/bin instead of a symblink in /usr/bin. Installing this with pacman directly or indirectly through makepkg -i as are supported would not have worked because it would check that there was nothing being clobbered. I don't know anything about pamac or Manjaro, but neither are officially supported by the AUR and clearly either you or those systems did something wrong by forcing a package install that clobbered existing files.

trevdev commented on 2021-01-08 06:01

This package annihilated my manjaro system by damaging the /usr directory on my machine. I haven't dug into the damage just yet. Pamac sucks. I'm sure this was an unexpected side effect, but just a heads up. Version 0.16.3-1. I will not be trying to replicate the issue :P

macxcool commented on 2021-01-07 17:33

@caleb You have to use: ln -s /usr/lib/marktext/marktext /usr/bin/marktext

If you use /usr/bin you're creating a symlink called 'bin' in the /usr folder, but /usr/bin already exists in the filesystem, of course.

theoldfellow commented on 2021-01-07 14:01

error: failed to commit transaction (conflicting files) marktext-bin: /usr/bin exists in filesystem Errors occurred, no packages were upgraded.

Seems there is something wrong with @hatred's link?

hatred commented on 2020-12-23 23:51

@caleb, Hi! Could you please add symlink to the /usr/lib/marktext/marktext into /usr/bin? Like ln -s /usr/lib/marktext/marktext /usr/bin.

Seems it works well.

mgr commented on 2020-06-27 20:00

@caleb: Ah, so that’s why. Thanks for explaining! :)

caleb commented on 2020-06-27 18:36

@mgr That's where the binary gets installed because this is a binary package that just rebundles the upstream Electron distribution. The binary can't be moved relative to the rest of the Electron bundle. If you want something with more normal Linux system norms I recommend the marktext package instead of marktext-bin. It uses the Arch system Electron packages and adds a launcher script in /usr/bin.

Henry78 commented on 2020-04-04 17:22

Updated pkgbuild (just changed pkgver and worked around errors):

# Maintainer: Alfin Bakhtiar Ilhami <alfin at nuclea dot id>

pkgname=marktext-bin
_pkgname=marktext
pkgver=0.16.1
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')
provides=('marktext')
conflicts=('marktext')
depends=('gtk3' 'libxss' 'nss')

_source() {
    local _github=https://github.com/marktext/marktext

    # Binary tarball
    echo $pkgname-$pkgver.tar.gz::$_github/releases/download/v$pkgver/$_pkgname-x64.tar.gz

    # Desktop entry
    echo $pkgname-$pkgver.desktop::$_github/raw/v$pkgver/resources/linux/$_pkgname.desktop

    # Icons
    for s in 16 24 32 48 64 128 256 512; do
        echo $pkgname-${s}x${s}.png::$_github/raw/v$pkgver/resources/icons/${s}x${s}/$_pkgname.png
    done
}
source=($(_source))

prepare() {
    # Change desktop entry to execute /usr/lib/marktext/marktext
    sed -i "s|Exec=.*|Exec=/usr/lib/marktext/marktext %F|" \
        "$srcdir/$pkgname-$pkgver.desktop"
}

package() {
    install -d "$pkgdir/usr/lib"
    cp -rT "$srcdir/$_pkgname-x64" "$pkgdir/usr/lib/$_pkgname"

    # Install desktop entry
    install -Dm644 "$srcdir/$pkgname-$pkgver.desktop" \
        "$pkgdir/usr/share/applications/$_pkgname.desktop"

    # Install icons
    for s in 16 24 32 48 64 128 256 512; do
        install -Dm644 "$srcdir/$pkgname-${s}x${s}.png" \
            "$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/$_pkgname.png"
    done

    # Install licenses
    install -Dt "$pkgdir/usr/share/licenses/$_pkgname" -m644 \
        "$srcdir/$_pkgname-x64/"{LICENSE,LICENSE.electron.txt,LICENSES.chromium.html}
}

sha512sums=('42e3d0e255fb06c667b5df1b540d3a2b8b863360c5f6aae653c38d7e1cd7455b5f46480cd9f138b3f1e2c3122042949b5c4fc224c8be03466d69ffc13a1006e6'
            '419b20d75376c2992d47c0f2b445795be716de0bb3f670d52d2e492fe3331c6aae7a898d2ea82259777d5eea68910440de99217aeee1edd585d7f4bb09388f99'
            '2d700fb2af037ade7c66e328e90eacfec27fe25d3ee42487f00978450a81bc9275622404cad821a41b4f5a767d9f7afbbe614ed7a0ddbc95d879fb57beef79e2'
            '52a8a7f28f620738e06253243e3156d09bc6f9cec6ab49caa2e3674e57be0378d5ab6bc28028ee08caaebd7b197c383ed5f08a5c1c8cb9dce6c9b1c90abb932e'
            '840ec0fc95ebeff29902d984113b91906ca5c3fc598fdd515a9b475a373d0c96bcee0c6bb146c8e99ccef2c616db0ee1ddfc44573d78ce9077b4bc2fab1c41e8'
            '39ee566a087950b88c165903ee00a86ab6f6c7fe9c86d715fdc87af144e47b06713f604e10ff09c0d9dde5a62a160376e20657a5d1dcb68d1b1901f976741336'
            '9bd243eda4888d8ae15991d9595d1dcf7992c00b4193406b7cc7e74ae86c1afcd1948979710494b65d504807a9393edd6c01ff3125776ebf5eb3061f29b57dd4'
            '7b2a5ee74bbc24e10940ac7ef0bf82f9d73c7d981f8d5a90bb58fc857a417176d69a77995b43eb696ddb0d237c11dccd4ae6ed337accc0a27ab54f1bcdc2064d'
            '3461f1c9cb29e103861101dc3ed0c6f24536d99bab78182b12c296a09ce7a9d249620e9788526184311af761a994b846877c84161922a7d0a0355f178d1aa4fc'
            '2effb4e6be7f68f3c55b98c0d7c41a23bf4b1a5e9bf3d1544a5f642ef8764c63cb75bdc98b039278948dd21185899142fc688c6f70a3d38f8e6af54aefbda00c')

mgr commented on 2019-11-06 15:46

Why does the binary get installed to '/usr/lib/marktext/marktext'?