updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gmt-cpt-city / PKGBUILD
blob6c8ac12f3a1d4d8b292483a66960103e1721c4c3
1 # Contributor: abenson <adrian.m.benson@gmail.com>
2 # vim: ts=4 et sw=4 sts=4
4 pkgname=gmt-cpt-city
5 pkgver=1.92
6 _pkgsubver=1
7 pkgrel=1
8 pkgdesc="GMT color palettes (*.cpt) from the cpt-city collection"
9 arch=('any')
10 url="http://soliton.vm.bytemark.co.uk/pub/cpt-city"
11 license=('GPL','APACHE','CCPL','custom')
12 optdepends=('gmt: the Generic Mapping Tools')
13 source=(http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/cpt-city_${pkgver}-${_pkgsubver}.tar.gz)
14         # http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/cpt-city_1.82-2.tar.gz
15 install=$pkgname.install
17 build() {
18     cd "$srcdir"/cpt-city-${pkgver}
19     ./configure --prefix="$pkgdir"/usr --mandir="$pkgdir"/usr/share/man
22 package() {
23     cd "$srcdir"/cpt-city-${pkgver}
24     make install 
25     mkdir -p "$pkgdir"/usr/share/licenses
26     mv "$pkgdir"/usr/share/doc/cpt-city/copying "$pkgdir"/usr/share/licenses/$pkgname
27     rm -rf "$pkgdir"/usr/share/doc
29     ## The following cpt collections are junk for most GMT related purposes
30     ## uncomment below to remove from them from the package 
31     #local _junk_cpts=(bhw colo cw ds es fg ggr gmt go2 hult ing lb ma nd neota ocal occ pd pj rc sd)
32     # if [ -n "${_junk_cpts[@]}" ]; then
33     #     local __cpt
34     #     for __cpt in ${_junk_cpts[@]}; do 
35     #         rm -rf "$pkgdir"/usr/share/cpt-city/$__cpt
36     #     done
37     # fi
39     #create symlink in gmt dir
40     mkdir -p "$pkgdir"/usr/share/gmt/cpt
41     # 1st link for use with GMT5
42     ln -s ../../cpt-city "$pkgdir"/usr/share/gmt/cpt/cpt-city
43     # 1st link for use with GMT4
44     ln -s ../../cpt-city "$pkgdir"/usr/share/gmt/cpt/GMT_cpt-city
47 md5sums=('6f9d9d760e744209d6a01ca2e1015af0')