blob: c2f175bbc97b4c07306ea0a482c84fece08227df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Contributor: abenson <adrian.m.benson@gmail.com>
# vim: ts=4 et sw=4 sts=4
pkgname=gmt-cpt-city
pkgver=2.19
_pkgsubver=1
pkgrel=1
pkgdesc="GMT color palettes (*.cpt) from the cpt-city collection"
arch=('any')
url="http://soliton.vm.bytemark.co.uk/pub/cpt-city"
license=('GPL' 'APACHE' 'CCPL' 'custom')
optdepends=('gmt: the Generic Mapping Tools')
source=(http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/cpt-city_${pkgver}-${_pkgsubver}.tar.gz)
install=$pkgname.install
options=('!strip') #nothing to strip, takes ages trying
md5sums=('daf52ae3f3520ba466690fd6eb22be98')
build() {
cd "$srcdir"/cpt-city-${pkgver}
./configure --prefix="$pkgdir"/usr --mandir="$pkgdir"/usr/share/man
}
package() {
cd "$srcdir"/cpt-city-${pkgver}
make install
mkdir -p "$pkgdir"/usr/share/licenses
mv "$pkgdir"/usr/share/doc/cpt-city/copying "$pkgdir"/usr/share/licenses/$pkgname
rm -rf "$pkgdir"/usr/share/doc
#create symlink in gmt dir
mkdir -p "$pkgdir"/usr/share/gmt/cpt "$pkgdir"/opt/gmt5/share/cpt/cpt-city
# link for use with GMT5
# ln -s /usr/share/cpt-city "$pkgdir"/opt/gmt5/share/cpt/cpt-city
# link for use with GMT4
ln -s ../../cpt-city "$pkgdir"/usr/share/gmt/cpt/GMT_cpt-city
}
|