summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81d07ab8bea7d63ab60a45e5873ae002dc7c299f (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
# Maintainer: Bertrand Lemasle <blemasle@gmail.com>

pkgname=libindi-astrolink4usb-git
pkgver=2.0.8.r37.00275dc
_libindiver=2.0.8
pkgrel=1
pkgdesc="3rd party drivers for INDI, support for Astrolink 4 USB device"
url="http://www.indilib.org/index.php?title=Main_Page"
license=(GPL3)
arch=(i686 x86_64)
depends=(libindi=${_libindiver})
makedepends=(git cmake)
source=("git+https://github.com/astrojolo/astrolink4usb.git")
sha256sums=('SKIP')

pkgver() {
  cd astrolink4usb
  printf "%s.r%s.%s" "${_libindiver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build  
}

build() {
  cd build
  cmake -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    ../astrolink4usb
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}