summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase2019-05-17 13:31:23 +0200
committerSven-Hendrik Haase2019-05-17 13:31:23 +0200
commit9c782bb4fc10cea71debe4706fd419cdd20fd54c (patch)
treea5926ed48d6946c3eaf395ce9bcb5cbe53dbba7f
downloadaur-9c782bb4fc10cea71debe4706fd419cdd20fd54c.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4b3c363f08f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = gnvim
+ pkgdesc = GUI for neovim, without any web bloat
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = https://github.com/vhakulinen/gnvim
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ makedepends = rust
+ makedepends = git
+ depends = neovim
+ depends = gtk3
+ depends = webkit2gtk
+ source = gnvim-0.1.3::git+https://github.com/vhakulinen/gnvim.git#tag=0.1.3
+ sha512sums = SKIP
+
+pkgname = gnvim
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a8bde3b039a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+# Contributor: DaZ <daz.root+arch@gmail.com>
+
+pkgname=gnvim
+url="https://github.com/vhakulinen/gnvim"
+pkgdesc="GUI for neovim, without any web bloat"
+pkgver=0.1.3
+pkgrel=1
+arch=('x86_64')
+license=('MIT')
+depends=('neovim' 'gtk3' 'webkit2gtk')
+makedepends=('cargo' 'rust' 'git')
+source=("gnvim-${pkgver}::git+https://github.com/vhakulinen/gnvim.git#tag=${pkgver}")
+sha512sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ sed -i s';/usr/local/share/gnvim/runtime;/usr/share/gnvim/runtime;' src/main.rs
+}
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ cargo build --release --locked
+}
+
+check() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ cargo test
+}
+
+package() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ make PREFIX="/usr" DESTDIR="$pkgdir/" install
+}