summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ede7e5bf26de890330150ab11b1aedd242a304b (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
# Maintainer: beeender <chenmulong@gmail.com>
pkgname=('glrnvim')
_pkgname="glrnvim"
pkgver=1.1.0
pkgrel=0
arch=('x86_64' 'i686')
url='https://github.com/beeender/glrnvim'
license=('GPL3')
makedepends=('rust' 'cargo' 'git')
source=("git+https://github.com/beeender/glrnvim.git#tag=v$pkgver")
sha256sums=('SKIP')

package_glrnvim() {
	pkgdesc="A GPU-accelerated neovim GUI."
	depends=('neovim')
	optdepends=('alacritty' 'rxvt-unicode' 'kitty')
	provides=('glrnvim')

	cd "$srcdir/$_pkgname"
	env CARGO_INCREMENTAL=0 cargo build --release

	install -Dm755 "$srcdir/$_pkgname/target/release/glrnvim" "$pkgdir/usr/bin/glrnvim"
    install -Dm644 $srcdir/$_pkgname/glrnvim.yml "$pkgdir/usr/share/doc/glrnvim/example/glrnvim.yml"
    install -Dm644 $srcdir/$_pkgname/glrnvim.desktop "$pkgdir/usr/share/applications/glrnvim.desktop"
    install -Dm644 $srcdir/$_pkgname/glrnvim.svg "$pkgdir/usr/share/icons/glrnvim.svg"
}