updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / xtide / PKGBUILD
blob5eb4bb358b2980801a4302533fb0760706d5f129
1 # Maintainer: Beej Jorgensen <beej@beej.us>
2 pkgname=xtide
3 pkgver=2.11
4 pkgrel=3
5 pkgdesc="Harmonic tide clock and tide predictor"
6 arch=('i686' 'x86_64')
7 url="http://www.flaterco.com/xtide/xtide.html"
8 license=('GPL')
9 depends=('libxaw' 'zlib' 'libxpm' 'libpng' 'libtcd')
10 optdepends=('gpsd')
11 backup=("etc/$pkgname/$pkgname.conf")
12 source=('ftp://ftp.flaterco.com/xtide/harmonics-dwf-20110410-free.tar.bz2'
13   'ftp://ftp.flaterco.com/xtide/harmonics-dwf-20110410-nonfree.tar.bz2'
14   'ftp://ftp.flaterco.com/xtide/wvs.tar.bz2'
15   "ftp://ftp.flaterco.com/xtide/$pkgname-$pkgver.tar.bz2"
16   "$pkgname-$pkgver-aur.patch"
17   "$pkgname.conf")
18 noextract=('harmonics-dwf-20110410-free.tar.bz2'
19   'harmonics-dwf-20110410-nonfree.tar.bz2'
20   'wvs.tar.bz2')
22 md5sums=('985c2f69eea343782142fa459fc34128'
23          '7e25432d92674992e3f817573dc9bf17'
24          '56325c8105c7137ced73396f2f2d8221'
25          '1d85890bb13b3345154e0f68831b7ebd'
26          '16a37c21fc8bee1a3485325d735e62bd'
27          '9965593e086a5b53457dc01d9f161784')
29 build() {
30   # install data files
31   install -d -m0755 "$pkgdir/usr/share/$pkgname"
32   cd "$pkgdir/usr/share/$pkgname"
33   tar xvf "$srcdir/harmonics-dwf-20110410-free.tar.bz2" -o
34   tar xvf "$srcdir/harmonics-dwf-20110410-nonfree.tar.bz2" -o
35   tar xvf "$srcdir/wvs.tar.bz2" -o
37   # config file
38   install -d -m0755 $pkgdir/etc/$pkgname
39   install -m0644 $srcdir/$pkgname.conf $pkgdir/etc/$pkgname
41   cd "$srcdir/$pkgname-$pkgver"
43   # patch to look for conf in /etc/xtide
44   patch -Np1 < ../$pkgname-$pkgver-aur.patch
46   ./configure --prefix=/usr
47   make
48   make DESTDIR="$pkgdir/" install
51 # vim:set ts=2 sw=2 et: