You are not logged in.
I've been working with markdown for many years, like anyone who share source code using a modern web platforms. It became some kind of standard for documentation writing, and cannot be ignored forever.
Those, who prefer minimalistic environments (for some reason), like me, have an extremely high standards, this is why I can't accept any of existing programs that built with, lets say "questionable technologies". By the way it must be lightweight, freaking fast, customizable and support vimkeys ^_^
It was a long time of waiting and doubts , and finally I've deicided to make it by myself. Please welcome litemdview.
Its git repository is located here:
https://notabug.org/g0tsu/litemdview
It has no package for archlinux yet, neither for any other linux distribution. It would be nice if someone helped me with it.
To be honest it is one of those programs that I REALLY USE everyday, heh, I love this program, and hope it could be helpful for you too, it's the reason why I share it with you.
Thanks.
PKGBUILD
pkgname=litemdview pkgver=0.0.26 pkgrel=1 pkgdesc="Suckless markdown viewer" arch=('x86_64') url="https://notabug.org/g0tsu/litemdview" license=('GPL2') depends=('gtk3' 'gtkmm3') makedepends=('fontconfig') source=("https://notabug.org/g0tsu/litemdview/archive/$pkgname-$pkgver.tar.gz") sha256sums=('0aa98ed1e5769c925f10c916d69f5b11a2b7c8791813fff1d226cfedf78cb625') build() { cd "$srcdir/$pkgname" ./bootstrap ./configure --prefix=/usr make } package() { cd "$srcdir/$pkgname" make DESTDIR="$pkgdir" install }
Last edited by g0tsu (2022-01-05 20:56:22)
Offline
Sorry, but this does not build for me. I get many errors like this
main.cpp:29:1: error: narrowing conversion of '226' from 'int' to 'char' [-Wnarrowing]
also from line 34 of main.cpp and with different numbers.
Starting PKGBUILD (dependencies unchecked)
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=litemdview
pkgver=0.0.24
pkgrel=1
pkgdesc="Suckless markdown viewer"
url="https://notabug.org/g0tsu/litemdview"
arch=('x86_64')
license=('GPL2')
depends=('glibc')
provides=('litemdview')
conflicts=('litemdview')
source=($url/archive/$pkgname-$pkgver.tar.gz)
sha256sums=('174da8f9c85deaf5fa415bb10bb75f0b401c7d239dcd3e51d2a5058ae99090c6')
build() {
cd $pkgname
./bootstrap
./configure --prefix=/usr
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}
Last edited by Stefan Husmann (2022-01-05 18:14:01)
Offline
Interesting, didn't know -Wnarrowing comes by default. Lets try 0.0.25 with disabled "narrowing". Thank you for the report and for PKGBOULD. Can I suggest some small change ? May you add "strip src/litemdview" before installation please ?
Thanks.
Offline
Interesting, didn't know -Wnarrowing comes by default.
You set -Wall, which enables everything it can, so you have to disable it with -Wno-narrowing again.
You could maybe use unsigned char, though and then cast to char if necessary.
May you add "strip src/litemdview" before installation please ?
makepkg does automatically strip everything unless that is disabled in its configuration.
Last edited by progandy (2022-01-05 19:03:27)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
You set -Wall, which enables everything it can, so you have to disable it with -Wno-narrowing again.
You're totally right. So I did it in the 0.0.25.
Anyways -Wall is a bad idea for releases, will never use it by default, kinda emberrasing when someones gcc works better than mine
Thank you.
Offline
Improved PKGBUILD with dependencies this time.
pkgname=litemdview
pkgver=0.0.26
pkgrel=1
pkgdesc="Suckless markdown viewer"
arch=('x86_64')
url="https://notabug.org/g0tsu/litemdview"
license=('GPL2')
depends=('gtk3' 'gtkmm3')
makedepends=('fontconfig')
source=("https://notabug.org/g0tsu/litemdview/archive/$pkgname-$pkgver.tar.gz")
sha256sums=('0aa98ed1e5769c925f10c916d69f5b11a2b7c8791813fff1d226cfedf78cb625')
build() {
cd "$srcdir/$pkgname"
./bootstrap
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" install
}
Offline
Thank you !
Offline
It is now in AUR. Please contact me if you want to be added as contributors.
Offline
@Stefan: The provdies() and conflicts() are unecessary, see Package relations.
Offline
Hi. Great work g0tsu
Anyone knows how to use litemdview as previewer of markdown file in gnome File viewer (nautilus) (or wahtever desktop I guess)? Do I need to tweak sushi config ? or something else ?
Offline
Offline
@Stefan: The provdies() and conflicts() are unecessary, see Package relations.
Thanks, fixed.
Offline