From deccf846d8577952f52ae9927b4924a15ee4fbe8 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 18 Dec 2024 11:01:55 -0500 Subject: [PATCH] Fix how version is obtained in PKGBUILD. --- distro-packages/Arch-Linux/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/distro-packages/Arch-Linux/PKGBUILD b/distro-packages/Arch-Linux/PKGBUILD index e3d279c..25cd308 100644 --- a/distro-packages/Arch-Linux/PKGBUILD +++ b/distro-packages/Arch-Linux/PKGBUILD @@ -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