updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / sunclock / PKGBUILD
blob8c4d71daba26da8b2f391b2dab43bb1f2f5edd77
1 #Contributor=Firmicus <firmicus@gmx.net>
3 pkgname=sunclock
4 pkgver=3.56
5 pkgrel=2
6 pkgdesc="A sophisticated astronomical clock for the X Window system"
7 url="http://frmas.free.fr/li_1.htm#_Sunclock_"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 depends=(xorg-server libjpeg libpng libxpm)
11 source=(http://frmas.free.fr/files/$pkgname-$pkgver.tar.bz2 \
12         http://ankabut.net/varia/$pkgname-$pkgver.patch \
13         ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/data_packages/medium_images_270804.tar.bz2 \
14         ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/data_packages/huge.jpg)
15 md5sums=('9dc92f071e211343e38cc23224dfe162' 'f4c4f4c4f1f75782c1178c54b14f8331'\
16          'c81f6e0fc9ca48452bb2390a37b36ed3' '4f0c8fc61e9b545ac337e84df12331b7')
17 build() {
18   cd $startdir/src
19   patch -p0 < $pkgname-$pkgver.patch
20   cd $pkgname-$pkgver
21   make || return 1
22   make DESTDIR=$startdir/pkg install
23   # install medium images
24   mkdir -p $startdir/pkg/usr/share/sunclock/earthmaps/jpeg/
25   install -m644 ../images/medium/*.jpg $startdir/pkg/usr/share/sunclock/earthmaps/jpeg/
26   #install huge.jpg
27   install -m644 ../huge.jpg $startdir/pkg/usr/share/sunclock/earthmaps/jpeg