summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c0664ed07fb5f843012b7b2e113ac274b199375 (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
pkgname=qastrocam-g2-svn
_svnname=qastrocam-g2
pkgver=800
pkgrel=1
pkgdesc="Linux modified webcam capture software for astronomy."
url="http://sourceforge.net/projects/qastrocam-g2/"
arch=('i686' 'x86_64')
license=('GPLv3')
depends=('qt4' 'libjpeg-turbo' 'cfitsio' 'libusb')
optdepends=('sdl')
makedepends=('cmake' 'subversion')
provides=("${_svnname}")
conflicts=("${_svnname}")
source=("${_svnname}::svn://svn.code.sf.net/p/qastrocam-g2/svn/trunk")
sha1sums=('SKIP')

pkgver() {
	cd "$SRCDEST/${_svnname}"
	svnversion | tr -d [A-z]
}

build() {
	cd $_svnname
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
	make all
}

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