# Maintainer: BrLi pkgname=zettlr pkgver=1.4.0 pkgrel=1 pkgdesc="A markdown editor for writing academic texts and taking notes" arch=('x86_64') url="https://www.zettlr.com" license=('GPL') depends=(electron ttf-webhostinghub-glyphs otf-crimson-text) makedepends=(yarn git) optdepends=('pandoc: For exporting to various format' 'texlive-bin: For Latex support' 'ttf-lato: Display output in a more comfortable way') source=($pkgname::git+https://github.com/Zettlr/Zettlr.git#tag=v$pkgver) sha1sums=(SKIP) build() { cd $srcdir/$pkgname yarn install --pure-lockfile yarn less yarn handlebars yarn lang:refresh cd $srcdir/$pkgname/source yarn install --pure-lockfile } package() { install -dm 755 "$pkgdir"/usr/lib/$pkgname cd $srcdir/$pkgname/ cp -r --no-preserve=ownership --preserve=mode source/* "$pkgdir"/usr/lib/$pkgname/ # Remove unneeded addin find $pkgdir/usr/lib/zettlr -name "fonts" -exec rm -rfv {} + find $pkgdir/usr/lib/zettlr -name ".gitignore" -or -name ".eslintrc.json" -or -name ".npmignore" -exec rm -rfv {} + install -Dm755 /dev/stdin $pkgdir/usr/bin/$pkgname <