mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
864 B
Bash
33 lines
864 B
Bash
pkgname=libindi
|
|
pkgver=1.6.2
|
|
pkgrel=2
|
|
pkgdesc="A distributed control protocol designed to operate astronomical instrumentation"
|
|
url="http://www.indilib.org/index.php?title=Main_Page"
|
|
license=('GPL2')
|
|
arch=('x86_64')
|
|
depends=(libnova cfitsio libusb libjpeg gsl libtheora)
|
|
makedepends=(cmake boost qt5-base)
|
|
source=("https://github.com/indilib/indi/releases/download/v$pkgver/libindi_$pkgver.tar.gz")
|
|
sha256sums=('58b4764806d53539f56c6e2c015ec4b270e9c350e2ca317c569076e3e3a0eb09')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
|
|
sed -e 's|GROUP="plugdev", MODE="0666"|TAG+="uaccess"|' -i libindi/drivers/*/*.rules
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../libindi \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|