diff options
author | BrLi | 2019-06-17 12:46:26 +0800 |
---|---|---|
committer | BrLi | 2019-06-17 12:46:26 +0800 |
commit | 472f949cf1da033d4d2d54a865e3396e12976d3c (patch) | |
tree | 73272807730d9ce7e5dcf1e96c7b6253f192e158 /PKGBUILD | |
parent | 43a77eabad67619649b3f0c3321344b6d421ef04 (diff) | |
download | aur-472f949cf1da033d4d2d54a865e3396e12976d3c.tar.gz |
updpkg
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -1,18 +1,18 @@ -# Maintainer: weearc <qby19981121@gmail.com> -# Co-Maintainer: therojam <archlinux@therojam.xyz> +# Maintainer: BrLi <brli@chakralinux.org> pkgname=zettlr -pkgver=1.3.0.b2 +pkgver=1.3.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) -makedepends=(yarn) +depends=(electron ttf-webhostinghub-glyphs otf-crimson-text) +makedepends=(yarn git) optdepends=('pandoc: For exporting to various format' - 'texlive-bin: For Latex support') -source=($pkgname::git+https://github.com/Zettlr/Zettlr.git#tag=v1.3.0-beta.2) + '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() { @@ -24,14 +24,18 @@ build() { 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 <<END #!/bin/bash exec electron /usr/lib/$pkgname "$@" |