summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcc4a74636f31472de3e74077692a2f6d319ef22 (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
pkgname=open-phd-guiding-git
pkgver=r3163.e73dcd55
pkgrel=1
pkgdesc="Open PHD Guiding - PHD2 astrophotography autoguiding tool"
url="http://openphdguiding.org/"
arch=('i686' 'x86_64')
license=('BSD3')
depends=('wxwidgets-gtk3' 'v4l-utils' 'zlib' 'cfitsio' 'opencv' 'libnova' 'libindi')
makedepends=('git' 'cmake')
source=("git+https://github.com/OpenPHDGuiding/phd2.git")
sha1sums=('SKIP')

_gitname='phd2'

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

prepare() {
	cd $_gitname
	patch -p1 < ../../nova.patch
	cd -
	mkdir -p build
	cd build
	cmake ../$_gitname
}

build() {
	cd build
	make
}

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