blob: ff69b2d5ef750e19d2b90002ecd7b6fb8ecb37b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Sebastian Baberowski <sebastian@baberowski.com>
pkgname=libindi-asi
pkgver=1.7.9
pkgrel=1
pkgdesc="3rd party drivers for INDI, support for ZWO devices: ASI cameras, EFW filter wheel, ASI ST4 port and ASI focuser"
url="http://www.indilib.org/index.php?title=Main_Page"
license=(LGPL2.1)
arch=(i686 x86_64)
depends=(libindi)
makedepends=(cmake)
source=("https://github.com/indilib/indi/archive/v${pkgver}.tar.gz")
sha256sums=('b42d0a6849543ea2d144e8ee280611c4c44f7b11ecbae18378df440e0907730a')
prepare() {
mkdir -p build
cd indi-${pkgver}/3rdparty
#set all to off by default
sed -i -e '/option(WITH_.*On/s/ On/ Off/' CMakeLists.txt
}
build() {
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d \
-DWITH_ASICAM=On \
../indi-${pkgver}/3rdparty
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
|