Date: Tuesday, June 30, 2020 @ 16:19:38
  Author: eworm
Revision: 657191

archrelease: copy trunk to staging-x86_64

Added:
  vis/repos/staging-x86_64/
  vis/repos/staging-x86_64/PKGBUILD
    (from rev 657190, vis/trunk/PKGBUILD)

----------+
 PKGBUILD |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

Copied: vis/repos/staging-x86_64/PKGBUILD (from rev 657190, vis/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2020-06-30 16:19:38 UTC (rev 657191)
@@ -0,0 +1,58 @@
+# Maintainer: Christian Hesse <m...@eworm.de>
+
+pkgname=vis
+_tag='fbf2cb0979fb1e2eb256d2f3b61b4450aab8abae' # git rev-parse v${pkgver}
+pkgver=0.6
+pkgrel=2
+pkgdesc='modern, legacy free, simple yet efficient vim-like editor'
+arch=('x86_64')
+url='https://github.com/martanne/vis#vis-a-vim-like-text-editor'
+depends=('acl' 'libacl.so' 'bash' 'ncurses' 'libncursesw.so' 'libtermkey'
+         'libtermkey.so' 'lua' 'lua-lpeg' 'tre' 'file')
+makedepends=('git')
+checkdepends=('vim')
+license=('custom:ISC')
+backup=('etc/vis/visrc.lua')
+validpgpkeys=('54A47F12462D26A7D078A932C83A52CD1962562C') # Marc André Tanner 
<m...@brain-dump.org>
+source=("git://github.com/martanne/vis.git#tag=${_tag}?signed"
+        'git://github.com/martanne/vis-test.git')
+sha256sums=('SKIP'
+            'SKIP')
+
+prepare() {
+       cd vis/
+
+       git config --file=.gitmodules submodule.test.url ../vis-test/
+       git update-index --assume-unchanged .gitmodules
+       git submodule init
+       git submodule update
+
+       # build: define LUA_COMPAT_5_3
+       git cherry-pick -n 603ee4688ca0da05840bbc15241ee53b02d0987d
+}
+
+build() {
+       cd vis/
+
+       ./configure \
+               --prefix=/usr
+
+       make
+}
+
+check() {
+       cd vis/
+
+       make -C test/
+}
+
+package() {
+       cd vis/
+
+       make DESTDIR="${pkgdir}" install
+
+       install -D -m0644 lua/visrc.lua "${pkgdir}"/etc/vis/visrc.lua
+
+       install -D -m0644 'LICENSE' "${pkgdir}/usr/share/licenses/vis/LICENSE"
+}
+

Reply via email to