This commit is contained in:
Lehel Gyuro 2025-03-01 20:42:30 +01:00
commit a8acd05713
3 changed files with 68 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = libindi-orion-ssg3
pkgdesc = INDI driver for products manufactured by indi-orion-ssg3
pkgver = 2.1.2.1
pkgrel = 1
url = http://www.indilib.org/index.php?title=Main_Page
arch = i686
arch = x86_64
arch = aarch64
license = LGPL-2.1-or-later
makedepends = cmake
depends = glibc
depends = libindi=2.1.2.1
source = https://github.com/indilib/indi-3rdparty/archive/v2.1.2.1.tar.gz
sha256sums = d29a667a5b9bf3b1d9be5f2ca81bfff5573e98a6941f764fd687d439e1b8abb6
pkgname = libindi-orion-ssg3

37
PKGBUILD Normal file
View file

@ -0,0 +1,37 @@
# Maintainer: Lehel Gyuro <lehel@freemail.hu>
pkgname=libindi-orion-ssg3
pkgver=2.1.2.1
pkgrel=1
pkgdesc="INDI driver for products manufactured by indi-orion-ssg3"
url="http://www.indilib.org/index.php?title=Main_Page"
license=(LGPL-2.1-or-later)
arch=(i686 x86_64 aarch64)
depends=(glibc libindi=${pkgver})
makedepends=(cmake)
source=("https://github.com/indilib/indi-3rdparty/archive/v${pkgver}.tar.gz" "fix_cmake.patch")
sha256sums=("d29a667a5b9bf3b1d9be5f2ca81bfff5573e98a6941f764fd687d439e1b8abb6" "8bd2d012125f56071cb41137bf1039fad03e4e44396d059413631a0b8e478771")
prepare() {
mkdir -p build
cd indi-3rdparty-${pkgver}
sed -i -e '/option(WITH_.*On)$/s/ On)$/ Off)/' CMakeLists.txt
patch -Np1 < ${srcdir}/fix_cmake.patch
}
build() {
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d \
-DRULES_INSTALL_DIR=/usr/lib/udev/rules.d \
-DFIRMWARE_INSTALL_DIR=/usr \
-DWITH_QSI=On \
../indi-3rdparty-${pkgver}
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}

15
fix_cmake.patch Normal file
View file

@ -0,0 +1,15 @@
diff --git a/indi-orion-ssg3/CMakeLists.txt b/indi-orion-ssg3/CMakeLists.txt
index 745a02b1..6f974a37 100644
--- a/indi-orion-ssg3/CMakeLists.txt
+++ b/indi-orion-ssg3/CMakeLists.txt
@@ -7,8 +7,10 @@ include(GNUInstallDirs)
IF(APPLE)
ELSE(APPLE)
+IF(NOT RULES_INSTALL_DIR)
set(RULES_INSTALL_DIR "/lib/udev/rules.d")
ENDIF()
+ENDIF()
set (ORION_SSG3_VERSION_MAJOR 0)
set (ORION_SSG3_VERSION_MINOR 1)