summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Rogoża2015-06-14 15:57:33 +0200
committerPiotr Rogoża2015-06-14 15:57:33 +0200
commitbfdc2cc3920c971762fd1de7c643fad76657d572 (patch)
tree9016b4ec0a92c540257e2b44885fba7cf8efd142
downloadaur-bfdc2cc3920c971762fd1de7c643fad76657d572.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD50
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe6475e6b33
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = poly2tri-c-git
+ pkgdesc = A C library for generating constrained delaunay triangulations and refining them.
+ pkgver = p2tc.0.1.0.2.gc55fabf
+ pkgrel = 1
+ url = https://code.google.com/p/poly2tri-c/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = glib2
+ provides = poly2tri-c
+ options = !libtool
+
+pkgname = poly2tri-c-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a419401cc30
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
+# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+
+pkgname=poly2tri-c-git
+pkgver=p2tc.0.1.0.2.gc55fabf
+pkgrel=1
+pkgdesc='A C library for generating constrained delaunay triangulations and refining them.'
+arch=('i686' 'x86_64')
+url='https://code.google.com/p/poly2tri-c/'
+license=('GPL')
+depends=(glib2)
+makedepends=(git)
+provides=(poly2tri-c)
+options=(!libtool)
+_gitroot='https://code.google.com/p/poly2tri-c/'
+_gitname='poly2tri-c'
+
+pkgver() {
+ if [ -d "$srcdir"/$_gitname ]; then
+ cd "$srcdir"/$_gitname
+ git describe --always | sed 's|-|.|g'
+ fi
+}
+
+build(){
+ cd "$srcdir"
+ msg2 "Connecting to GIT server...."
+
+ if [ -d ${_gitname}/.git ] ; then
+ cd $_gitname
+ git pull origin
+ msg2 "The local files are updated."
+ else
+ git clone $_gitroot $_gitname
+ cd $_gitname
+ fi
+
+ msg2 "GIT checkout done or server timeout"
+ msg2 "Starting make"
+
+ #./configure --prefix=/usr
+ ./autogen.sh --prefix=/usr
+ make
+}
+package(){
+ cd "$srcdir"/$_gitname
+ msg2 "Starting make install"
+ make DESTDIR="$pkgdir/" install
+}