1 # Contributor: abenson <adrian.m.benson@gmail.com>
2 # vim: ts=4 et sw=4 sts=4
8 pkgdesc="GMT color palettes (*.cpt) from the cpt-city collection"
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
18 cd "$srcdir"/cpt-city-${pkgver}
19 ./configure --prefix="$pkgdir"/usr --mandir="$pkgdir"/usr/share/man
23 cd "$srcdir"/cpt-city-${pkgver}
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
34 # for __cpt in ${_junk_cpts[@]}; do
35 # rm -rf "$pkgdir"/usr/share/cpt-city/$__cpt
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')