blob: c349a5c6874ed6bda0fce4ba4cd5e35774486956 (
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
|
# Maintainer: Mattia Procopio (astro.matto) <matto.astro at gmail dot com>
pkgname=indi-3rdparty-drivers
pkgver=2.0.8
pkgrel=2
pkgdesc="Indi 3rd party drivers"
arch=(x86_64 aarch64)
url="https://indilib.org"
license=('LGPLv2')
depends=('indi-3rdparty-libs' 'limesuite' 'libdc1394' 'fxload' 'zeromq' 'urjtag' 'dfu-util')
makedepends=(cmake)
source=("https://github.com/indilib/indi-3rdparty/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('dbee5d88788266b9a17878e354fed12afea6716cf905351b62d0ec6f90bfdc73')
options=(!lto)
prepare() {
mkdir -p build
}
build() {
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d \
-DFIRMWARE_INSTALL_DIR=/usr/lib/firmware \
../indi-3rdparty-$pkgver
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/lib/firmware
mv "$pkgdir"/lib/firmware/* "$pkgdir"/usr/lib/firmware
mv "$pkgdir"/lib/udev/rules.d/* "$pkgdir"/usr/lib/udev/rules.d
rmdir "$pkgdir/lib/udev/rules.d"
rmdir "$pkgdir/lib/udev"
rmdir "$pkgdir/lib/firmware"
rmdir "$pkgdir/lib"
}
|