[arch-commits] Commit in vis/repos/community-x86_64 (PKGBUILD PKGBUILD)

Christian Hesse eworm at archlinux.org
Mon Aug 26 09:31:05 UTC 2019


    Date: Monday, August 26, 2019 @ 09:31:04
  Author: eworm
Revision: 502017

archrelease: copy trunk to community-x86_64

Added:
  vis/repos/community-x86_64/PKGBUILD
    (from rev 502016, vis/trunk/PKGBUILD)
Deleted:
  vis/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  112 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 60 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-26 09:30:59 UTC (rev 502016)
+++ PKGBUILD	2019-08-26 09:31:04 UTC (rev 502017)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Christian Hesse <mail at eworm.de>
-
-pkgname=vis
-pkgver=0.5
-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')
-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')
-
-prepare() {
-	cd "${pkgname}-${pkgver}/"
-
-	rmdir test/
-	mv "../${_pkgname_test}-${_pkgver_test}" test
-}
-
-build() {
-	cd "${pkgname}-${pkgver}/"
-
-	./configure \
-		--prefix=/usr
-
-	make
-}
-
-check() {
-	cd "${pkgname}-${pkgver}/"
-
-	make -C test/
-}
-
-package() {
-	cd "${pkgname}-${pkgver}/"
-
-	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"
-}
-

Copied: vis/repos/community-x86_64/PKGBUILD (from rev 502016, vis/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-26 09:31:04 UTC (rev 502017)
@@ -0,0 +1,60 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=vis
+_tag=0.5
+_commit='e136e348cbd0ea4bf2dd8de6f98da1ca1924bc96'
+pkgver=0.5.r62.ge136e34
+pkgrel=1
+pkgdesc='modern, legacy free, simple yet efficient vim-like editor'
+arch=('x86_64')
+url='http://www.brain-dump.org/projects/vis/'
+depends=('acl' 'bash' 'ncurses' 'libtermkey' 'lua' 'lua-lpeg' 'tre' 'file')
+makedepends=('git')
+checkdepends=('vim')
+license=('custom:ISC')
+backup=('etc/vis/visrc.lua')
+source=('git://github.com/martanne/vis.git?commit=${_commit}'
+        '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
+}
+
+pkgver() {
+	cd vis/
+
+	printf '%s.r%s.g%s' "${_tag}" "$(git rev-list --count v${_tag}..)" "$(git rev-parse --short HEAD)"
+}
+
+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"
+}
+



More information about the arch-commits mailing list