updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / fl_moxgen / PKGBUILD
blob435383d811e216e0b84f8c457c844c398c2591a0
1 # Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
3 pkgname=fl_moxgen
4 pkgver=0.05
5 pkgrel=1
6 pkgdesc="A program to compute the dimensions of a Moxon Rectangle antenna given the desired frequency and the wire diameter. Fl_MoxGen has export to PDF."
7 arch=('i686' 'x86_64')
8 url="http://home.comcast.net/~andystewart/moxon_sw.html"
9 license=('GPL')
10 changelog=CHANGELOG
11 depends=('gcc-libs' 'fltk' 'libharu')
12 source=(http://downloads.sourceforge.net/flmoxgen/Fl_MoxGen-${pkgver}.tar.gz
13                 ${pkgname}.desktop page-size.patch)
15 _bindir=/usr/bin
16 _sharedir=/usr/share/${pkgname}
17 _haruinc=/usr/include
19 build() {
20         cd ${srcdir}
22         patch -p1 < page-size.patch
24         cd Fl_MoxGen-${pkgver}
26         make BINDIR=${_bindir} SHAREDIR=${_sharedir} LIBHARU_INC=${_haruinc}
29 package() {
30         mkdir -p ${pkgdir}/${_bindir} ${pkgdir}/${_sharedir}
32         cd ${srcdir}/Fl_MoxGen-${pkgver}
34         install -m755 fl_moxgen ${pkgdir}/${_bindir}
35         install -m644 moxgen.png ${pkgdir}/${_sharedir}
36         install -D -m644 ../${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
39 md5sums=('8d05aece623749fd0448213fe3eed7f6'
40          'ef90e1b730057d7074f70ecfacac028b'
41          '0501b98a10e22537afe553b131bb98c4')
42 sha256sums=('19271c51438d6762c58b498fcd8b9293295b1f7497f3c52d3635a8710818ba20'
43             'f3fea2c601cc65c5f1cb655c2be88610a50b0d9288008d0ba5b498bfd2cd9fb4'
44             '755628d14bae6dec78bb36e776becb48c2a1f97e00bf9947a4a939bdc2356922')