1 # Contributor: Firmicus <firmicus āt gmx dōt net>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
7 pkgdesc="X client for generating images of the Earth and manipulating the CIA World data bank II global vector information"
9 url="http://frmas.free.fr/li_1.htm#_Xrmap_"
11 depends=('bzip2' 'libjpeg' 'libpng' 'libxpm')
13 optdepends=('xorg-server-utils')
16 ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/$pkgname-$pkgver.tar.bz2 \
17 ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/data/CIA_WDB2.jpd.bz2 \
18 ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/data/flags-2.9-eps.tar.bz2 \
19 ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/data/earthdata_low_res.tar.bz2 \
20 ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/data/factbook_text_2006.tar.bz2 \
21 ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/data/anthems-1.3.tar.bz2 \
22 ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/data/hymns-1.4.tar.bz2)
23 md5sums=('2f2fc217e3c312ccfc2080c2d32ef5b9' 'd5ea6c95b1ac0d707ceb39ee6282a3cd'\
24 '8b5255a685bbb5eef2f86df182731a32' '9df0819ef558796442cfc72784c9b92e'\
25 'd759385d85aafbe50e5bca125f8d65a0' 'de6282e74556b4eb82266036fdbba8a8'\
26 '7e8f454f7ad04776c6455b75225630bf' '682dfd893b2ed46c175e6c0a2374cbbe')
29 cd $srcdir/$pkgname-$pkgver
31 $pkgdir/usr/share/{doc/xrmap,man/man1,man/man1x,$pkgname/flags,}
33 patch -p1 < ../arch.patch || return 1
37 install -Dm755 emx $pkgdir/usr/bin/emx || return 1
40 #sed -i 's+lib64+lib+g' Makefile || return 1
41 # # the author forgot to update version.h
42 # sed -i 's/2\.33/2\.33\.1/' version.h
43 # sed -i 's/November 1/November 17/' version.h
44 cp Makefile.noimake Makefile || return 1
46 make DESTDIR=$pkgdir/usr install || return 1
48 _datadir=$pkgdir/usr/share/xrmap
49 cp -f CIA_WDB2.jpd $_datadir
50 cp -fR anthems $_datadir
51 cp -fR earthdata $_datadir
52 cp -fR factbook $_datadir
53 cp -fR flags $_datadir
54 cp -fR hymns $_datadir
55 chmod 644 $pkgdir/usr/share/xrmap/i18n/xrmap_msg.de