From 99dc459cd9357f4984efc201f92517d080bbb3b6 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 9 Mar 2014 15:24:20 +0100 Subject: archmap: imported --- .SRCINFO | 18 ++++++++++++++++++ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ archmap.install | 11 +++++++++++ 3 files changed, 65 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 archmap.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..71c6793 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by makepkg 4.2.1 +# Mon Jun 1 15:02:06 UTC 2015 +pkgbase = archmap + pkgdesc = Generates a map of Arch Linux users + pkgver = latest + pkgrel = 1 + url = https://github.com/maelstrom59/ArchMap + install = archmap.install + arch = any + license = custom:UNLICENSE + makedepends = git + depends = python + depends = python-geojson + source = archmap::git+https://github.com/maelstrom59/ArchMap.git + md5sums = SKIP + +pkgname = archmap + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..24eae0d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Johannes Löthberg + +pkgname=archmap +pkgver=latest +pkgrel=1 + +pkgdesc="Generates a map of Arch Linux users" +arch=('any') +url="https://github.com/maelstrom59/ArchMap" +license=('custom:UNLICENSE') + +depends=('python' 'python-geojson') +makedepends=('git') + +install=archmap.install +source=('archmap::git+https://github.com/maelstrom59/ArchMap.git') +md5sums=('SKIP') + +pkgver() { + cd archmap + git describe --tags | sed 's/^v//; s/-/-r/; s/-/./g' +} + + +package() { + cd archmap + install -D archmap.py "$pkgdir/usr/bin/archmap.py" + + install -d "$pkgdir/usr/lib/systemd/system" + install -m644 systemd/archmap.{service,timer} "$pkgdir/usr/lib/systemd/system/" + + install -d "$pkgdir/usr/share/doc/archmap" + install {README.md,archmap.conf,markers.kml} "$pkgdir/usr/share/doc/archmap" + + install -D -m644 UNLICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/archmap.install b/archmap.install new file mode 100644 index 0000000..a6e70d2 --- /dev/null +++ b/archmap.install @@ -0,0 +1,11 @@ +post_install() { + cat < Copy the template config from /usr/share/doc/archmap.conf to /etc +==> and edit the paths. Enable and start archmap.timer to generate a +==> new map every 24 hours. +EOF +} + +post_upgrade() { + post_install +} -- cgit v1.2.3-54-g00ecf