summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD40
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f63369ba88e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = lib2geom-git
+ pkgdesc = a library developed to provide a robust computational geometry framework
+ pkgver = 1.0.r69.g226eb8c6
+ pkgrel = 1
+ url = http://lib2geom.sourceforge.net/
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ makedepends = ninja
+ makedepends = gtest
+ makedepends = boost
+ depends = glib2
+ depends = cairo
+ depends = gsl
+ depends = gtest
+ depends = double-conversion
+ source = git+https://gitlab.com/inkscape/lib2geom.git
+ md5sums = SKIP
+
+pkgname = lib2geom-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..916943df677
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
+# Contributor: Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com>
+
+pkgname=lib2geom-git
+pkgver=1.0.r69.g226eb8c6
+pkgrel=1
+pkgdesc="a library developed to provide a robust computational geometry framework"
+arch=('x86_64')
+url="http://lib2geom.sourceforge.net/"
+license=('GPL')
+depends=('glib2' 'cairo' 'gsl' 'gtest' 'double-conversion')
+makedepends=('git' 'cmake' 'ninja' 'gtest' 'boost')
+source=('git+https://gitlab.com/inkscape/lib2geom.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd lib2geom
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ mkdir -p lib2geom/build
+}
+
+build() {
+ cd lib2geom/build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -D2GEOM_BUILD_SHARED=YES \
+ -D2GEOM_TOYS=NO \
+ -D2GEOM_TESTING=NO \
+ -G Ninja
+ ninja
+}
+
+package() {
+ cd lib2geom/build
+ DESTDIR="$pkgdir/" ninja install
+}