community/neovim to 0.8.1-2

This commit is contained in:
Kevin Mihelich 2022-11-20 00:18:41 +00:00
parent 54cd724c75
commit 82d45e40e0

View file

@ -8,7 +8,7 @@
pkgname=neovim
pkgver=0.8.1
pkgrel=1
pkgrel=2
pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs'
arch=('x86_64')
url='https://neovim.io'
@ -22,8 +22,15 @@ optdepends=('python-neovim: for Python 3 plugin support (see :help python)'
'xsel: for clipboard support on X11 (or xclip) (see :help clipboard)'
'wl-clipboard: for clipboard support on wayland (see :help clipboard)')
options=('debug')
source=("https://github.com/neovim/neovim/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('b4059a8a0a3caedf15f4160f2342306f6f1d625f8f8499491efd6b4440e275de95a63aa857395f844cbc871432359f96abbca138f6278d1228366d6fb4c4f1a6')
source=("https://github.com/neovim/neovim/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
'neovim-fix_memory_alignment_for_dynamic_allocation.patch::https://github.com/neovim/neovim/commit/bf3cbee630eec82d95520cd3e9688ef1732c298e.patch')
sha512sums=('b4059a8a0a3caedf15f4160f2342306f6f1d625f8f8499491efd6b4440e275de95a63aa857395f844cbc871432359f96abbca138f6278d1228366d6fb4c4f1a6'
'73959f483a98b5b361959241eac0911fb0b145c013195fe5e7c2d2cabda67018c5d00caf6913ac78a6c40563e1a8518ef38d94119b328e5172b474aa4122e393')
prepare() {
cd ${pkgname}-${pkgver}
patch --forward --strip=1 --input=../neovim-fix_memory_alignment_for_dynamic_allocation.patch
}
build() {
cmake \
@ -33,7 +40,7 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_LTO=OFF \
-W no-dev \
-S neovim-$pkgver
-S ${pkgname}-${pkgver}
cmake --build build --verbose
}
@ -45,10 +52,11 @@ check() {
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 neovim-$pkgver/LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 neovim-$pkgver/runtime/nvim.desktop -t "${pkgdir}/usr/share/applications/"
install -Dm644 neovim-$pkgver/runtime/nvim.appdata.xml -t "${pkgdir}/usr/share/metainfo/"
install -Dm644 neovim-$pkgver/runtime/nvim.png -t "${pkgdir}/usr/share/pixmaps/"
cd ${pkgname}-${pkgver}
install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 runtime/nvim.desktop -t "${pkgdir}/usr/share/applications/"
install -Dm644 runtime/nvim.appdata.xml -t "${pkgdir}/usr/share/metainfo/"
install -Dm644 runtime/nvim.png -t "${pkgdir}/usr/share/pixmaps/"
# Make Arch vim packages work
mkdir -p "${pkgdir}"/etc/xdg/nvim