blob: 64a7aff29e2e3a1171e9cb3df73bf6a1cfb5c9e0 (
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
38
39
|
# Maintainer: Lehel Gyuro <lehel@freemail.hu>
# Contributor: Will Gauvin <wgauvin@gmail.com>
pkgname=libindi-gphoto
pkgver=2.1.3
pkgrel=1
pkgdesc="3rd party drivers for INDI, support for DSLR camers using gphoto"
url="http://www.indilib.org/index.php?title=Main_Page"
license=(LGPL2.1)
arch=(i686 x86_64 aarch64)
depends=(libindi=${pkgver} libgphoto2 libraw)
makedepends=(cmake)
source=("https://github.com/indilib/indi-3rdparty/archive/v${pkgver}.tar.gz")
sha256sums=("bcb7cf2b9053c5b1e052a35247ec499a9d513f4ed257178b244c190394d0daa6")
prepare() {
mkdir -p build
cd indi-3rdparty-${pkgver}
#set all to off by default
sed -i -e '/option(WITH_.*On/s/ On)/ Off)/' CMakeLists.txt
# Allow installing outside of /lib
find ./ -name CMakeLists.txt -exec sed -i -e 's|"\/lib|"${CMAKE_INSTALL_PREFIX}/lib|g' {} \;
}
build() {
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_GPHOTO=On \
../indi-3rdparty-${pkgver}
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
|