mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
New package: neovide-0.15.0
This commit is contained in:
parent
35e096acf7
commit
aae1f713a7
1 changed files with 46 additions and 0 deletions
46
srcpkgs/neovide/template
Normal file
46
srcpkgs/neovide/template
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# Template file for 'neovide'
|
||||||
|
pkgname=neovide
|
||||||
|
version=0.15.0
|
||||||
|
revision=1
|
||||||
|
archs="x86_64* aarch64*" # the skia-bindings crate only supports these archs
|
||||||
|
build_style=cargo
|
||||||
|
hostmakedepends="pkg-config clang ninja python gn curl git"
|
||||||
|
makedepends="fontconfig-devel freetype-devel icu-devel zlib-devel
|
||||||
|
libjpeg-turbo-devel libpng-devel libwebp-devel harfbuzz-devel
|
||||||
|
expat-devel"
|
||||||
|
depends="hicolor-icon-theme"
|
||||||
|
checkdepends="neovim"
|
||||||
|
short_desc="No Nonsense Neovim Client in Rust"
|
||||||
|
maintainer="Theo Logan <theoheretic@protonmail.com>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://neovide.dev/"
|
||||||
|
changelog="https://github.com/neovide/neovide/releases/tag/${version}"
|
||||||
|
distfiles="https://github.com/neovide/neovide/archive/refs/tags/${version}.tar.gz"
|
||||||
|
checksum=89900673314f4dba66a1716197aca3b51f01365d9f8351563c3dc5604b3e48ab
|
||||||
|
|
||||||
|
# skia-bindings fails to build without these flags
|
||||||
|
export FORCE_SKIA_BUILD=1
|
||||||
|
export SKIA_USE_SYSTEM_LIBRARIES=1
|
||||||
|
export SKIA_GN_COMMAND=/usr/bin/gn
|
||||||
|
export SKIA_NINJA_COMMAND=/usr/bin/ninja
|
||||||
|
export SKIA_GN_ARGS="extra_cflags+=[\"-I${XBPS_CROSS_BASE}/usr/include/freetype2\", \"-I${XBPS_CROSS_BASE}/usr/include/harfbuzz\"]"
|
||||||
|
export CLANGCC=clang
|
||||||
|
export CLANGCXX=clang++
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
vsed -e 's/skia-safe = { version = "0.84.0/skia-safe = { version = "0.86.0/' -i Cargo.toml
|
||||||
|
cargo update --package skia-safe@0.84.0 --precise 0.86.0
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
for size in 16x16 32x32 48x48 256x256; do
|
||||||
|
vinstall assets/neovide-${size}.png 0644 usr/share/icons/hicolor/${size}/apps neovide.png
|
||||||
|
done
|
||||||
|
|
||||||
|
vlicense LICENSE
|
||||||
|
vinstall assets/neovide.desktop 0644 usr/share/applications
|
||||||
|
vmkdir usr/share/docs/neovide
|
||||||
|
for file in $(find website/docs -iname "*.md"); do
|
||||||
|
vinstall ${file} 0644 usr/share/docs/neovide
|
||||||
|
done
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue