2015-09-08 03:30:46 +08:00
|
|
|
pkgname=libindi
|
2018-05-26 20:17:29 +08:00
|
|
|
pkgver=1.7.2
|
|
|
|
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)
|
2018-05-26 20:17:29 +08:00
|
|
|
source=($pkgname-$pkgver.tar.gz::"https://github.com/indilib/indi/archive/v$pkgver.tar.gz")
|
|
|
|
sha256sums=('5ec9aea9e8b1a79ea440327c25a7c7cfde6f9145b066e42eaaec3e76f8e37b93')
|
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
|
|
|
|
2018-05-26 20:17:29 +08:00
|
|
|
sed -e 's|GROUP="plugdev", MODE="0666"|TAG+="uaccess"|' -i indi-$pkgver/libindi/drivers/*/*.rules
|
2015-09-08 03:30:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2018-05-26 20:17:29 +08:00
|
|
|
cmake ../indi-$pkgver/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
|
|
|
|
}
|