From 79219cd7ec90278bc60df2a60d2465e168801c86 Mon Sep 17 00:00:00 2001
From: Tomas Pecka <peckato1@fit.cvut.cz>
Date: Tue, 9 Jul 2019 15:58:26 +0200
Subject: [PATCH] Rename packages in PKGBUILD, make gui a tight dependency

---
 extra/distro/arch/nightly/PKGBUILD | 10 +++++-----
 extra/distro/arch/release/PKGBUILD |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/extra/distro/arch/nightly/PKGBUILD b/extra/distro/arch/nightly/PKGBUILD
index a35dccc306..0a79afd740 100644
--- a/extra/distro/arch/nightly/PKGBUILD
+++ b/extra/distro/arch/nightly/PKGBUILD
@@ -1,9 +1,9 @@
 # Maintainer: Tomas Pecka <peckato1 at fit dot cvut dot cz>
 
-pkgname=('algorithms-library-git' 'algorithms-library-gui-git')
+pkgname=('algorithms-library-nightly' 'algorithms-library-gui-nightly')
 pkgbase='automata-library'
 
-pkgver=0.0.0.r515.gc4bc905a4
+pkgver=0.0.0.r521.g362073025
 pkgrel=1
 
 pkgdesc='Theoretical computer science datastructures and algorithms implementation. The library provides graphical and console interface similar to bash with many classical algorithms manipulating automata, grammars, regular expressions, trees and strings.'
@@ -45,7 +45,7 @@ check() {
 	make test ARGS="--output-on-failure"
 }
 
-package_algorithms-library-git() {
+package_algorithms-library-nightly() {
 	depends=('tclap' 'libxml2' 'readline')
 	optdepends=('graphviz: Visualize data structures')
 	provides=('algorithms-library')
@@ -72,8 +72,8 @@ package_algorithms-library-git() {
 	popd
 }
 
-package_algorithms-library-gui-git() {
-	depends=('libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' 'algorithms-library')
+package_algorithms-library-gui-nightly() {
+	depends=('libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' "algorithms-library-nightly>=$pkgver" "algorithms-library-nightly<=$pkgver")
 	provides=('algorithms-library-gui')
 	conflicts=('algorithms-library-gui')
 
diff --git a/extra/distro/arch/release/PKGBUILD b/extra/distro/arch/release/PKGBUILD
index bf3853b069..6d721cef21 100644
--- a/extra/distro/arch/release/PKGBUILD
+++ b/extra/distro/arch/release/PKGBUILD
@@ -68,7 +68,7 @@ package_algorithms-library() {
 }
 
 package_algorithms-library-gui() {
-	depends=('libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' 'algorithms-library')
+	depends=('libxml2' 'qt5-base>=5.7' 'graphviz' 'jsoncpp' "algorithms-library>=$pkgver" "algorithms-library<=$pkgver")
 	provides=('algorithms-library-gui')
 	conflicts=('algorithms-library-gui')
 
-- 
GitLab