updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / wview / PKGBUILD
blob93768bc4e936605f3fb3fdd42c58af864571999f
1 # Maintainer: Thomas Techinus ttech@mostlynothing.info
3 pkgname=wview
4 pkgver=5.19.0
5 pkgrel=1
6 pkgdesc=" colletion of daemons to provide support to retrieve weather station information."
7 arch=('i686' 'x86_64')
8 url="http://www.wviewweather.com/"
9 license=('GPL')
10 depends=('zlib' 'libzip' 'libpng' 'gd' 'libusb' 'radlib') # radlib is needed but doesn't work here?
11 makedepends=('curl' 'gawk' 'wget' 'file')
12 optdepends=('apache2: To view weather station site'
13            'ntp: time sync'
14            'php: web admin interface'
15            'php-gd: For generating web interface images'
16            'php-sqlite: to access weather datababases')
17 backup=(etc/wview/{graphics,images,images-user,arcrec-header}.conf
18         etc/wview/wview-conf.sdb 
19         etc/wview/wview-binary
20         etc/wview/html/{html-templates,graphics}.conf 
21         var/wview/archive/wview-{archive,hilo,history,noaa}.sdb)
22 options=(!libtool)
23 source=(http://downloads.sourceforge.net/project/wview/wview/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz wview)
24 #install=('wview.install')
25 md5sums=('7a615d953a56c8f5c604f839b7a291ed'
26          '9f2a4560bdcef6a24d10b1306b58771b')
27 build() {
28   cd $srcdir/$pkgname-$pkgver
29   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
30   make || return 1
31   make DESTDIR=$pkgdir install || return 1
32   install -D -m755 "${srcdir}/wview" "${pkgdir}/etc/rc.d/wview" || return 1
34   echo "Make sure to run wviewconfig and wviewhtmlconfig if this is your first time installing!"