Skip to content

Commit

Permalink
addpkg: uivonim-git
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Feb 19, 2021
1 parent 0700027 commit cec4105
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
42 changes: 42 additions & 0 deletions archlinuxcn/uivonim-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Maintainer: Shengyu Zhang <la@archlinuxcn.org>

_pkgname=uivonim
pkgname=${_pkgname}-git
pkgver=v0.28.0.24.gd23b6ea
pkgrel=1
pkgdesc="A Neovim GUI designed for programming"
arch=('x86_64')
license=('AGPL')
url="https://glitchtron.org/veonim/"
makedepends=('npm' 'git')
depends=('neovim')
optdepends=()
source=("git+https://github.com/smolck/${_pkgname}"
"${_pkgname}.sh"
"${_pkgname}.desktop")

sha256sums=('SKIP'
'8de71b3528e4f40b77d114080a1bb7a2ade4ad73dd6f9799c2cb640d78209af2'
'17ab49bb6e0f74bc11052554cd0a8f341d772a993fe821143b256bad01d55d4f')

pkgver() {
cd ${_pkgname}
git describe --tags | sed 's/-/./g'
}

build() {
cd ${_pkgname}
npm ci
npm run build
npm run package
}

package() {
cd ${_pkgname}

install -d ${pkgdir}/opt
cp -R dist/linux-unpacked "${pkgdir}/opt/${_pkgname}"
install -Dm755 ${srcdir}/${_pkgname}.sh "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 ${srcdir}/${_pkgname}/art/icon.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png"
install -Dm644 ${srcdir}/${_pkgname}.desktop "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}
9 changes: 9 additions & 0 deletions archlinuxcn/uivonim-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
maintainers:
- github: SilverRainZ
email: Shengyu Zhang <la@archlinuxcn.org>

build_prefix: extra-x86_64

update_on:
- source: aur
aur: uivonim-git
13 changes: 13 additions & 0 deletions archlinuxcn/uivonim-git/uivonim.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
Name=Uivonim
GenericName=Uivonim Text Editor
Comment=Veonim is a Neovim GUI designed for programming
Exec=uivonim %F
TryExec=uivonim
Terminal=false
Type=Application
MimeType=text/english;text/plain;text/markdown;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;text/x-ruby;text/x-python;
Icon=uivonim
Categories=Utility;TextEditor;
Keywords=Text;Editor;Neovim
StartupNotify=false
2 changes: 2 additions & 0 deletions archlinuxcn/uivonim-git/uivonim.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /opt/uivonim/uivonim "$@"

0 comments on commit cec4105

Please sign in to comment.