Package Details: typora 0.9.81-1

Git Clone URL: https://aur.archlinux.org/typora.git (read-only)
Package Base: typora
Description: Typora will give you a seamless experience as both a reader and a writer.
Upstream URL: https://typora.io/
Keywords: markdown
Licenses: custom:"Copyright (c) 2015 Abner Lee All Rights Reserved."
Submitter: duckbrain
Maintainer: duckbrain
Last Packager: duckbrain
Votes: 71
Popularity: 4.76
First Submitted: 2016-09-28 06:28
Last Updated: 2019-12-02 22:57

Dependencies (3)

Required by (0)

Sources (1)

Pinned Comments

duckbrain commented on 2019-10-13 00:51

If you get the error ERROR: One or more files did not pass the validity check! or curl: (22) The requested URL returned error: 404, it might be that upstream has changed/removed a released package. They have a habit of doing that from time to time. Leave me a comment and I'll update the sum (or version).

duckbrain commented on 2019-10-13 00:50

New: The PKGBUILD will build with system electron if you set env ELECTRON=electron while building. Please try this out and provide feedback.

Edit: Thanks NicoHood for the PKGBUILD contributions.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

duckbrain commented on 2018-08-08 06:03

@rocka, Thanks! That keeps it from being dependent on the system glib and libxss, and makes the package a lot smaller. I can probably remove those as direct dependencies.

Why does your typora.sh cd /usr/share/typora? That breaks opening relative files with it.

The only concern I have is it breaking expecting a different version of node/electron. If anything breaks, I might have to revert it with a new pkgrel.

rocka commented on 2018-08-07 17:09

How about package this with system electron? I've modified the PKGBUILD and It seems to work fine.

PKGBUILD:

pkgname=typora
pkgver=0.9.53
pkgrel=2
pkgdesc="Typora will give you a seamless experience as both a reader and a writer."
arch=('x86_64')
license=('custom:"Copyright (c) 2015 Abner Lee All Rights Reserved."')
url="https://typora.io/"
depends=('gconf' 'libxss' 'electron')
optdepends=('noto-fonts-emoji: Or some other emoji font to see emojis')
source=(
    'typora.sh'
    "https://typora.io/./linux/${pkgname}_${pkgver}_amd64.deb"
)
md5sums=(
    '5851ce5475b7526ae0277e739a5ce6f9'
    '7bf938aa11cc6b8d3dca442e673b057b'
)

package() {
    _src="$srcdir/$pkgname"
    mkdir "$_src"
    bsdtar -xf data.tar.xz -C "$_src/"
    sed -i '/Change Log/d' "$_src/usr/share/applications/typora.desktop"
    install -Dm644 "$_src/usr/share/applications/typora.desktop" "$pkgdir/usr/share/applications/typora.desktop"
    install -Dm644 "$_src/usr/share/doc/typora/copyright" "$pkgdir/usr/share/doc/typora/copyright"
    install -Dm755 "$srcdir/typora.sh" "$pkgdir/usr/bin/typora"

    cp -r "$_src/usr/share/icons" "$pkgdir/usr/share/icons"
    cp -r "$_src/usr/share/typora/resources/app" "$pkgdir/usr/share/typora"
}

typora.sh:

#!/usr/bin/bash

cd /usr/share/typora
exec electron /usr/share/typora $@

duckbrain commented on 2018-08-07 14:13

It worked for me this morning, then I installed updates and it broke. Try downgrading glibc. That fixed it for me.

There hasn't been a package update for a while, so there haven't been any changes there.

sudo pacman -U /var/cache/pacman/pkg/glibc-2.27-3-x86_64.pkg.tar.xz

iosmanthus commented on 2018-08-07 09:56

It seems that typora doesn't work in ArchLinux now? It crashes when I launch it in terminal or DE. Here are the error message:

[1]    24885 segmentation fault (core dumped)  typora

lonaowna commented on 2018-04-05 20:13

License isn't right: cat /usr/share/doc/typora/copyright: Copyright (c) 2015 Abner Lee All Rights Reserved.

schmunk commented on 2018-03-16 10:50

I just noticed that several emojis in my markdown files were missing until I installed noto-fonts-emoji - might be an optional recommendation for typora

duckbrain commented on 2017-12-14 17:59

There was an 0.9.40. There was also a 0.9.39, but by the time I went to build a package it was already removed.

This seems to be happening after every release. The release happens, then there are one or more re-releases soon after, where the previous new releases are removed. As of writing, the repository has 0.9.33, 0.9.38, and 0.9.41. Maybe I need to wait a day or two before updating the AUR for the dust to settle.

@Timmy1e, changing to an unversioned URL is only going to make it worse, because the MD5sums will be wrong every time they update that path.

ludenticus commented on 2017-12-14 14:25

In PKGBUILD, change version to 0.9.41 and md5sum to '567fa10ef0bfb15cc6481f537ac7cc7c'

Timmy1e commented on 2017-12-14 14:20

The URL seems to be wrong, the new URL is <https://typora.io/linux/Typora-linux-x64.tar.gz>

==> Making package: typora 0.9.40-1 (Thu Dec 14 15:00:36 CET 2017)
==> Retrieving sources...
curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading 
https://typora.io/./linux/typora_0.9.40_amd64.deb

artfors commented on 2017-12-14 14:16

There is no 0.9.40 package. There is a 0.9.41