2015-09-08 03:30:46 +08:00
|
|
|
pkgname=libindi
|
2018-01-12 08:02:40 +08:00
|
|
|
pkgver=1.6.2
|
2017-06-01 05:42:59 +08:00
|
|
|
pkgrel=1
|
2015-09-08 03:30:46 +08:00
|
|
|
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')
|
2018-01-12 08:02:40 +08:00
|
|
|
depends=(libnova cfitsio libusb libjpeg gsl libtheora)
|
2017-06-01 05:42:59 +08:00
|
|
|
makedepends=(cmake boost qt5-base)
|
|
|
|
source=("https://github.com/indilib/indi/releases/download/v$pkgver/libindi_$pkgver.tar.gz")
|
2018-01-12 08:02:40 +08:00
|
|
|
sha256sums=('58b4764806d53539f56c6e2c015ec4b270e9c350e2ca317c569076e3e3a0eb09')
|
2015-09-08 03:30:46 +08:00
|
|
|
|
|
|
|
prepare() {
|
2016-01-06 01:05:14 +08:00
|
|
|
mkdir -p build
|
2017-06-01 05:42:59 +08:00
|
|
|
|
|
|
|
sed -e 's|GROUP="plugdev", MODE="0666"|TAG+="uaccess"|' -i libindi/drivers/*/*.rules
|
2015-09-08 03:30:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2017-06-01 05:42:59 +08:00
|
|
|
cmake ../libindi \
|
2015-09-08 03:30:46 +08:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2017-06-01 05:42:59 +08:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
2015-09-08 03:30:46 +08:00
|
|
|
-DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|