-
-
Save italic-r/9e951be4574388590dcb5e07f616b77b to your computer and use it in GitHub Desktop.
INDI 3rd party driver for Playerone devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jeffrey Hoover <italic.rendezvous@gmail.com> | |
pkgname=libindi-playerone | |
pkgver=2.0.1 | |
pkgrel=1 | |
pkgdesc="3rd party drivers for INDI, support for Playerone imaging cameras and filter wheel(?)" | |
url="http://www.indilib.org/index.php?title=Main_Page" | |
license=(LGPL2.1) | |
arch=(i686 x86_64 aarch64) | |
depends=(libindi=${pkgver}) | |
makedepends=(cmake) | |
source=("https://github.com/indilib/indi-3rdparty/archive/v${pkgver}.tar.gz") | |
sha256sums=('be98a84ab6166321fe5aa74fca132cd866ae4e6910ef3b97e3502a44c59d277d') | |
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_PLAYERONE=On \ | |
../indi-3rdparty-${pkgver} | |
make | |
} | |
package() { | |
cd build | |
make DESTDIR="$pkgdir" install | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jeffrey Hoover <italic.rendezvous@gmail.com> | |
pkgname=libplayerone | |
pkgver=2.0.1 | |
pkgrel=1 | |
pkgdesc="3rd party drivers for INDI, support for Playerone imaging cameras and filter wheel(?)" | |
url="http://www.indilib.org/index.php?title=Main_Page" | |
license=(LGPL2.1) | |
arch=(i686 x86_64 aarch64) | |
depends=(libindi=${pkgver}) | |
makedepends=(cmake) | |
source=("https://github.com/indilib/indi-3rdparty/archive/v${pkgver}.tar.gz") | |
sha256sums=('be98a84ab6166321fe5aa74fca132cd866ae4e6910ef3b97e3502a44c59d277d') | |
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 \ | |
-DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d \ | |
../indi-3rdparty-${pkgver}/libplayerone | |
make | |
} | |
package() { | |
cd build | |
make DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment