Date: Monday, August 26, 2019 @ 09:30:59
  Author: eworm
Revision: 502016

upgpkg: vis 0.5.r62.ge136e34-1

build from git

Modified:
  vis/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++++++--------------
 1 file changed, 23 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2019-08-26 09:30:50 UTC (rev 502015)
+++ PKGBUILD    2019-08-26 09:30:59 UTC (rev 502016)
@@ -1,31 +1,40 @@
 # Maintainer: Christian Hesse <m...@eworm.de>
 
 pkgname=vis
-pkgver=0.5
+_tag=0.5
+_commit='e136e348cbd0ea4bf2dd8de6f98da1ca1924bc96'
+pkgver=0.5.r62.ge136e34
 pkgrel=1
-_pkgname_test=vis-test
-_pkgver_test=0.3
 pkgdesc='modern, legacy free, simple yet efficient vim-like editor'
 arch=('x86_64')
 url='http://www.brain-dump.org/projects/vis/'
-depends=('ncurses' 'libtermkey' 'lua' 'lua-lpeg' 'tre' 'file')
+depends=('acl' 'bash' 'ncurses' 'libtermkey' 'lua' 'lua-lpeg' 'tre' 'file')
+makedepends=('git')
 checkdepends=('vim')
 license=('custom:ISC')
 backup=('etc/vis/visrc.lua')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/martanne/${pkgname}/archive/v${pkgver}.tar.gz";
-        
"${_pkgname_test}-${_pkgver_test}.tar.gz::https://github.com/martanne/${_pkgname_test}/archive/v${_pkgver_test}.tar.gz";)
-sha256sums=('77ea70ebc9c811d88e32199ef5b3ee9b834ac1e880fb61b6d2460f93f0587df5'
-            '267d8785e941c7dd1d0407803f025fcfd691a3e94511efc7c39b7f9debba8e79')
+source=('git://github.com/martanne/vis.git?commit=${_commit}'
+        'git://github.com/martanne/vis-test.git')
+sha256sums=('SKIP'
+            'SKIP')
 
 prepare() {
-       cd "${pkgname}-${pkgver}/"
+       cd vis/
 
-       rmdir test/
-       mv "../${_pkgname_test}-${_pkgver_test}" test
+       git config --file=.gitmodules submodule.test.url ../vis-test/
+       git update-index --assume-unchanged .gitmodules
+       git submodule init
+       git submodule update
 }
 
+pkgver() {
+       cd vis/
+
+       printf '%s.r%s.g%s' "${_tag}" "$(git rev-list --count v${_tag}..)" 
"$(git rev-parse --short HEAD)"
+}
+
 build() {
-       cd "${pkgname}-${pkgver}/"
+       cd vis/
 
        ./configure \
                --prefix=/usr
@@ -34,13 +43,13 @@
 }
 
 check() {
-       cd "${pkgname}-${pkgver}/"
+       cd vis/
 
        make -C test/
 }
 
 package() {
-       cd "${pkgname}-${pkgver}/"
+       cd vis/
 
        make DESTDIR="${pkgdir}" install
 

Reply via email to