updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / symsolon / PKGBUILD
blob5a90843b78ba72a1d127a7ce09bb93581f6d3ede
1 # Contributor: Fabio Falcinelli < fabio.falcinelli@gmail.com >
3 pkgname=symsolon
4 pkgver=0.6
5 pkgrel=4
6 pkgdesc="Astrology software insipred by the SYMBOLON deck. This software calculates the planet positions and make symbolon card tables according to the calculated constellation. It can draw the classical circular horoscope also."
7 arch=('i686' 'x86_64')
8 groups=()
9 url="http://symsolon.sourceforge.net/"
10 license=('GPL' 'custom:"SWISSEPHEM"')
11 depends=('qt>=4')
12 makedepends=()
13 conflicts=()
14 provides=(symsolon)
15 source=(http://downloads.sourceforge.net/symsolon/$pkgname-src-$pkgver.tgz)
16 md5sums=('bd96f37968544191ad5c1179714b1332')
18 build() {
19         install -D -m744 $srcdir/$pkgname-$pkgver/share/doc/symsolon/GNU_GPL_LICENSE_V3 $pkgdir/usr/share/licenses/symsolon/GNU_GPL_LICENSE_V3
20         install -D -m744 $srcdir/$pkgname-$pkgver/share/doc/symsolon/SWISSEPHEM_LICENSE $pkgdir/usr/share/licenses/symsolon/SWISSEPHEM_LICENSE
22         _src_array="quazip swe_171 zoneinfo symsolon"
23         for _step in $_src_array ; do
24                 if [[ -e $srcdir/$pkgname-$pkgver/src/$_step ]] ; then
25                         qmake -unix -o $srcdir/$pkgname-$pkgver/src/$_step/Makefile $srcdir/$pkgname-$pkgver/src/$_step/$_step.pro
26                 fi
27         done
28         cd $srcdir/$pkgname-$pkgver/src
29         qmake -unix -o Makefile src.pro
30         cd ..
31         qmake -unix -o Makefile symsolon.pro
32         make || return 1
34         export INSTALL_ROOT=$pkgdir/usr
35         make install || return 1
37         mkdir -p $pkgdir/usr/bin
38         cp $srcdir/$pkgname-$pkgver/bin/symsolon $pkgdir/usr/bin 
39         chmod 755 $pkgdir/usr/bin/symsolon