summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD33
-rw-r--r--gmt-cpt-city.install23
3 files changed, 11 insertions, 55 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 53cb91496587..178c2f768876 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,8 @@
-# Generated by mksrcinfo v8
-# Mon Aug 1 08:05:23 UTC 2016
pkgbase = gmt-cpt-city
pkgdesc = GMT color palettes (*.cpt) from the cpt-city collection
- pkgver = 2.19
+ pkgver = 2.24
pkgrel = 1
url = http://soliton.vm.bytemark.co.uk/pub/cpt-city
- install = gmt-cpt-city.install
arch = any
license = GPL
license = APACHE
@@ -13,8 +10,7 @@ pkgbase = gmt-cpt-city
license = custom
optdepends = gmt: the Generic Mapping Tools
options = !strip
- source = http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/cpt-city_2.19-1.tar.gz
- md5sums = daf52ae3f3520ba466690fd6eb22be98
+ source = http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/cpt-city-cpt-2.24.zip
+ sha512sums = 408838669aceb1114662215b4aaccfe83aabaafe2bff2075f9f7defe1a196183560fcf24c0e9d0098098d768672f85c7600ef652658c4f286141093937934dc6
pkgname = gmt-cpt-city
-
diff --git a/PKGBUILD b/PKGBUILD
index c2f175bbc97b..50372b6e0262 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,19 @@
+# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
# Contributor: abenson <adrian.m.benson@gmail.com>
-# vim: ts=4 et sw=4 sts=4
-
pkgname=gmt-cpt-city
-pkgver=2.19
-_pkgsubver=1
+pkgver=2.24
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
-}
+source=("http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/cpt-city-cpt-${pkgver}.zip")
+options=('!strip')
+sha512sums=('408838669aceb1114662215b4aaccfe83aabaafe2bff2075f9f7defe1a196183560fcf24c0e9d0098098d768672f85c7600ef652658c4f286141093937934dc6')
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
+ install -d "${pkgdir}/usr/share/gmt/cpt"
+ cp -r cpt-city "${pkgdir}/usr/share/gmt/cpt/cpt-city"
}
+# vim: ts=4 sw=4:
diff --git a/gmt-cpt-city.install b/gmt-cpt-city.install
deleted file mode 100644
index 6e89dcc451a8..000000000000
--- a/gmt-cpt-city.install
+++ /dev/null
@@ -1,23 +0,0 @@
-
-post_install() {
-cat << EOF
->>>
->>> This package provides the entire Cpt-City color
->>> palette collection.
->>>
->>> For usage with GMT look at:
->>>
->>> man cpt-city
->>>
->>> For examples and previews of all palettes, see the cpt-city
->>> website at:
->>>
->>> http://soliton.vm.bytemark.co.uk/pub/cpt-city/
->>>
-EOF
-}
-
-post_upgrade() {
- post_install
-}
-