summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Nagy2015-06-08 20:35:20 +0200
committerDaniel Nagy2015-06-08 20:35:20 +0200
commita0f0fe276601cb3d5592318c9f162c24de05cb10 (patch)
tree880dedf263716c62dda0b1dac7eb51e987646aff
downloadaur-a0f0fe276601cb3d5592318c9f162c24de05cb10.tar.gz
import to aur4
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD48
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6236f6c47e3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = osgearth-git
+ pkgdesc = A terrain rendering toolkit for OpenSceneGraph
+ pkgver = 4764.36f72fa
+ pkgrel = 1
+ url = http://www.osgearth.org
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ makedepends = cmake
+ depends = openscenegraph
+ depends = gdal
+ depends = expat
+ depends = curl
+ optdepends = geos: Improved vector support
+ optdepends = sqlite: Flat file cache
+ optdepends = libzip: Archive support
+ provides = osgearth
+ conflicts = osgearth
+ source = osgearth::git+https://github.com/gwaldron/osgearth
+ sha1sums = SKIP
+
+pkgname = osgearth-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f4b8a75164
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Daniel Nagy <danielnagy at gmx de>
+
+pkgname=osgearth-git
+_gitname=osgearth
+pkgver=4764.36f72fa
+pkgrel=1
+pkgdesc="A terrain rendering toolkit for OpenSceneGraph"
+arch=('i686' 'x86_64')
+url=('http://www.osgearth.org')
+license=('LGPL')
+depends=('openscenegraph' 'gdal' 'expat' 'curl' )
+optdepends=('geos: Improved vector support'
+ 'sqlite: Flat file cache'
+ 'libzip: Archive support')
+makedepends=('git' 'cmake')
+source=( "$_gitname::git+https://github.com/gwaldron/osgearth" )
+provides=( "$_gitname" )
+conflicts=( "$_gitname" )
+
+sha1sums=( 'SKIP' )
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ # Use the tag of the last commit
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+
+ cd "$srcdir/$_gitname"
+ rm -rf build
+ mkdir -p build
+ cd build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname"/build
+ make DESTDIR="$pkgdir" install
+ mkdir -p "$pkgdir"/usr/share/osgearth
+ cp -r "$srcdir"/$_gitname/tests "$pkgdir"/usr/share/osgearth
+ cp -r "$srcdir"/$_gitname/data "$pkgdir"/usr/share/osgearth
+}
+