summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2017-02-03 23:55:25 -0500
committerKyle Keen2017-02-03 23:55:25 -0500
commitc2a6b940dc043f3ca5abd90731d98b2f30fd13fd (patch)
treee6ab36305675916cfc6ff8f2252a79a75ee40f0b
parent7b227ae1265ba71c91e8044f4321c980928c503f (diff)
downloadaur-c2a6b940dc043f3ca5abd90731d98b2f30fd13fd.tar.gz
fix deps, build library
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD23
2 files changed, 19 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cedc1dda195..7dc5b029689 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
# Generated by mksrcinfo v8
-# Sat Dec 10 15:51:54 UTC 2016
+# Sat Feb 4 04:46:43 UTC 2017
pkgbase = structuresynth
pkgdesc = Graphics tool to make 3D structures from sets of rules, similar to Context Free.
pkgver = 1.5.0
- pkgrel = 4
+ pkgrel = 5
url = http://structuresynth.sourceforge.net
install = structuresynth.install
arch = i686
arch = x86_64
license = GPL
- makedepends = qt5-script
depends = qt5-base
+ depends = qt5-script
source = http://downloads.sourceforge.net/structuresynth/StructureSynth-Source-v1.5.0.zip
md5sums = 862705c5bc9e778094046399f44d6c26
diff --git a/PKGBUILD b/PKGBUILD
index b4189469d1a..de2cd12b184 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,12 @@
# Contributor: Adrian Carpenter <adriatic.c@gmail.com>
pkgname=structuresynth
pkgver=1.5.0
-pkgrel=4
+pkgrel=5
pkgdesc="Graphics tool to make 3D structures from sets of rules, similar to Context Free."
arch=('i686' 'x86_64')
url="http://structuresynth.sourceforge.net"
license=('GPL')
-depends=('qt5-base')
-makedepends=('qt5-script')
+depends=('qt5-base' 'qt5-script')
source=("http://downloads.sourceforge.net/structuresynth/StructureSynth-Source-v${pkgver}.zip")
md5sums=('862705c5bc9e778094046399f44d6c26')
install=${pkgname}.install
@@ -16,10 +15,6 @@ install=${pkgname}.install
prepare() {
cd "$srcdir/Structure Synth Source Code/"
sed -i '125 { s|return false;|return NULL;| }' SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp
-}
-
-build() {
- cd "$srcdir/Structure Synth Source Code/"
_patches=("s|loose|lose|"
"s|\.\./\.\./Misc|/usr/share/$pkgname/Misc|"
@@ -27,16 +22,29 @@ build() {
for _i in "${_patches[@]}"; do
sed -ie "$_i" StructureSynth/GUI/MainWindow.cpp
done
+
_patches_2=("s|QtGui/||" "s|\, QApplication::UnicodeUTF8||" )
for _i in "${_patches_2[@]}"; do
sed -ie "$_i" StructureSynth/GUI/TemplateExportDialog.h
sed -ie "$_i" StructureSynth/GUI/TemplateExportDialog.cpp
done
+
sed -i "2i #include <GL/glu.h>" SyntopiaCore/GLEngine/{Sphere.h,Raytracer/RayTracer.cpp}
+}
+build() {
+ cd "$srcdir/Structure Synth Source Code/"
qmake -project -after "CONFIG+=opengl" -after "QT+=xml opengl script" -after "unix:LIBS+=-lGLU -L/usr/lib64"
qmake
make
+
+ # really should use the qmake command to build this file...
+ cp 'Structure Synth Source Code.pro' library.pro
+ sed -i 's/TEMPLATE.*/TEMPLATE = lib/' library.pro
+ sed -i 's/TARGET.*/TARGET = ssynth/' library.pro
+ sed -i '7i CONFIG += staticlib' library.pro
+ qmake -o Makefile library.pro
+ make
}
package() {
@@ -55,6 +63,7 @@ package() {
chmod 0755 "$pkgdir/usr/share/$pkgname/Examples/Tutorials"
chmod 0755 "$pkgdir/usr/share/$pkgname/Misc"
install -Dm0755 "Structure Synth Source Code" "$pkgdir/usr/bin/structure-synth"
+ install -Dm0644 libssynth.a "$pkgdir/usr/lib/libssynth.a"
}
# vim:set ts=2 sw=2 et: