Compare commits

...

6 Commits

Author SHA1 Message Date
Storm Dragon
e9916bbcc4 Fixed wrong variable names in version. 2024-12-18 11:34:18 -05:00
Storm Dragon
6e480db630 Forgot to add the version file to the Makefile.am. 2024-12-18 11:28:57 -05:00
Storm Dragon
384479a0a5 Add the code name to the version. 2024-12-18 11:22:41 -05:00
Storm Dragon
deccf846d8 Fix how version is obtained in PKGBUILD. 2024-12-18 11:01:55 -05:00
Storm Dragon
92a909edb8 Fixed path for version file in configure.ac. 2024-12-18 10:55:51 -05:00
Storm Dragon
55c7de8c65 Attempt to change the version number to be more like Fenrir's. Will work on adding the codename part if this works. 2024-12-18 10:52:07 -05:00
5 changed files with 40 additions and 2 deletions

View File

@ -1,4 +1,7 @@
m4_define([cthulhu_version], [0.4])
m4_define([get_version], [m4_esyscmd_s([
grep "^version = " src/cthulhu/cthulhuVersion.py | sed 's/version = "\(.*\)"/\1/'
])])
m4_define([cthulhu_version], [get_version])
m4_define(pygobject_required_version, 3.18)
m4_define(atspi_required_version, 2.48)

View File

@ -44,6 +44,11 @@ prepare() {
NOCONFIGURE=1 ./autogen.sh
}
pkgver() {
cd cthulhu
grep "^version = " src/cthulhu/cthulhuVersion.py | sed 's/version = "\(.*\)"/\1/'
}
build() {
cd cthulhu
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

View File

@ -29,6 +29,7 @@ cthulhu_python_PYTHON = \
cmdnames.py \
colornames.py \
common_keyboardmap.py \
cthulhuVersion.py \
date_and_time_presenter.py \
debug.py \
desktop_keyboardmap.py \

View File

@ -0,0 +1,27 @@
#!/usr/bin/env python3
#
# Copyright (c) 2024 Stormux
# Copyright (c) 2010-2012 The Orca Team
# Copyright (c) 2012 Igalia, S.L.
# Copyright (c) 2005-2010 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., Franklin Street, Fifth Floor,
# Boston MA 02110-1301 USA.
#
# Fork of Orca Screen Reader (GNOME)
# Original source: https://gitlab.gnome.org/GNOME/orca
version = "2024.12.18"
codeName = "testing"

View File

@ -17,6 +17,8 @@
# Free Software Foundation, Inc., Franklin Street, Fifth Floor,
# Boston MA 02110-1301 USA.
from cthulhu import cthulhuVersion
"""Holds platform-specific settings.
"""
@ -28,7 +30,7 @@ __license__ = "LGPL"
# $CTHULHU_VERSION
#
version = "@VERSION@"
version = f"Cthulhu screen reader version {cthulhuVersion.version}-{cthulhuVersion.codeName}"
# The revision if built from git; otherwise an empty string
#