blob: 65890ee143511071b684f8a9113a5f3173e9eb99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Rodericuss <minetalebr@gmail.com>
pkgname=yanvim-git
pkgver=0.12.2.r36107.g0c6c40ca07
pkgrel=1
pkgdesc="Neovim fork with built-in Helix-style selection-first editing paradigm"
arch=('x86_64' 'aarch64')
url="https://github.com/Rodericuss/Yet-another-neovim"
license=('Apache-2.0' 'Vim')
depends=(
'neovim'
)
makedepends=(
'git'
'cmake'
'ninja'
'lua51-lpeg'
'lua51-mpack'
)
provides=('yanvim')
conflicts=('yanvim')
source=("${pkgname}::git+${url}.git#branch=stable")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
local _tag
_tag=$(git describe --long --tags 2>/dev/null | sed 's/^v//;s/-/.r/;s/-/./g')
if [[ -n "$_tag" ]]; then
echo "$_tag"
else
printf "0.12.2.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi
}
build() {
cd "${pkgname}"
cmake -B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
cd "${pkgname}"
DESTDIR="${pkgdir}" cmake --install build
# Remove everything shared with neovim — only keep the yanvim binary
rm -rf "${pkgdir}/usr/share" "${pkgdir}/usr/lib"
rm -f "${pkgdir}/usr/bin/nvim"
}
|