summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoroli2015-06-12 21:58:42 +0200
committeroli2015-06-12 21:58:42 +0200
commit3944578ad5e3e8eac6a4418d2d003b761ff1ed83 (patch)
tree3e585ade972c2d777dd27a7a733b311b634d4f2e
downloadaur-3944578ad5e3e8eac6a4418d2d003b761ff1ed83.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD40
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..36d96573a8a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = pbf2osm-git
+ pkgdesc = tool to convert pbf to osm
+ pkgver = 20120318
+ pkgrel = 1
+ url = http://git.openstreetmap.nl/index.cgi/pbf2osm.git/
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = git
+ depends = protobuf-c
+ depends = bzip2
+
+pkgname = pbf2osm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37cb9a19575
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Jose Riha <jose1711 gmail com>
+
+pkgname=pbf2osm-git
+pkgver=20120318
+pkgrel=1
+pkgdesc="tool to convert pbf to osm"
+arch=('x86_64' 'i686')
+url="http://git.openstreetmap.nl/index.cgi/pbf2osm.git/"
+license=('GPL')
+depends=('protobuf-c' 'bzip2')
+makedepends=('git')
+
+_gitroot="http://git.openstreet.nl/pbf2osm.git"
+_gitname="pbf2osm"
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [ -d $_gitname ] ; then
+ cd $_gitname && git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gitroot $_gitname
+ fi
+
+ cd $_gitname
+ git submodule init
+ git submodule update
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ cd src
+ make
+}
+
+package() {
+ install -Dm755 $srcdir/pbf2osm/src/pbf2osm $pkgdir/usr/bin/pbf2osm
+}