summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hofmann2015-02-01 16:06:36 +0100
committerPeter Hofmann2015-02-01 16:06:45 +0100
commit7ba6041464e28084e1dcabce321be536eed0f2b4 (patch)
treeda4bf53b96f531d97d0aa1bde7922a8d0f579006
downloadaur-7ba6041464e28084e1dcabce321be536eed0f2b4.tar.gz
asciiworld: Add PKGBUILD
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD69
2 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c201c1cde62
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = asciiworld-git
+ pkgdesc = ASCII world map and tools
+ pkgver = 15.02
+ pkgrel = 1
+ url = https://github.com/vain/asciiworld
+ arch = i686
+ arch = x86_64
+ license = custom:PIZZA-WARE
+ makedepends = git
+ depends = gd
+ depends = shapelib
+ optdepends = curl: Retrieving various data
+ optdepends = python: Additional tools, e.g. satellite tracking
+ optdepends = python-pyephem: Calculating satellite positions
+ optdepends = python-pygeoip: Reading GeoIP databases
+ optdepends = geoip-citydata: An actual GeoIP database
+ optdepends = python2: Additional tools, e.g. calculating tracks
+ optdepends = python2-geographiclib: Calculating geodetics
+ optdepends = ncurses: For tput
+ provides = asciiworld
+ conflicts = asciiworld
+ source = git://github.com/vain/asciiworld.git
+ md5sums = SKIP
+
+pkgname = asciiworld-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..13869361b40
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
+pkgname=asciiworld-git
+pkgver=15.02
+pkgrel=1
+pkgdesc="ASCII world map and tools"
+arch=('i686' 'x86_64')
+url="https://github.com/vain/asciiworld"
+license=('custom:PIZZA-WARE')
+depends=('gd' 'shapelib')
+makedepends=('git')
+optdepends=('curl: Retrieving various data'
+ 'python: Additional tools, e.g. satellite tracking'
+ 'python-pyephem: Calculating satellite positions'
+ 'python-pygeoip: Reading GeoIP databases'
+ 'geoip-citydata: An actual GeoIP database'
+ 'python2: Additional tools, e.g. calculating tracks'
+ 'python2-geographiclib: Calculating geodetics'
+ 'ncurses: For tput')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git://github.com/vain/asciiworld.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ git describe --always | sed 's|-|.|g; s|v||'
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make DEFAULT_MAP=/usr/share/"${pkgname%-git}"/ne_110m_land.shp
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+
+ # Core program
+ install -Dm755 asciiworld "$pkgdir"/usr/bin/asciiworld
+
+ # Map data
+ for i in ne_110m_land.sh{p,x}
+ do
+ install -Dm644 "$i" "$pkgdir/usr/share/${pkgname%-git}/$i"
+ done
+
+ # Satellite tracking suite
+ for i in asciiworld{-sat-get,-sat-calc,-sat-track}
+ do
+ install -Dm755 "$i" "$pkgdir"/usr/bin/"$i"
+ done
+
+ # TCP monitor
+ for i in asciiworld{-ip-geo,-tcp-monitor}
+ do
+ install -Dm755 "$i" "$pkgdir"/usr/bin/"$i"
+ done
+
+ # Generic helpers
+ for i in asciiworld-waypoints
+ do
+ install -Dm755 "$i" "$pkgdir"/usr/bin/"$i"
+ done
+
+ # Documents
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
+ install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname%-git}/README.md"
+ install -Dm644 README-tools.md \
+ "$pkgdir/usr/share/doc/${pkgname%-git}/README-tools.md"
+}