makedeb


powder-toy 96.2.350-1


Desktop version of the classic falling sand physics sandbox, simulates air pressure, velocity & heat!

Click here to go back to the commit logs for powder-toy.

Commit:


Hash: 7441ab13ccffb01af63f3ec8fc1b10a03cedc09a

Message: apply no sse patch from Ryan Farley

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7529ef7..8c6f835 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -16,7 +16,7 @@ pkgbase = powder-toy
 	source = http://github.com/FacialTurd/The-Powder-Toy/archive/v91.5.330.tar.gz
 	source = powder-toy.desktop
 	source = powder-toy.png
-	md5sums = 1e6fbf990995cb0b1a372e5c3b74fb94
+	md5sums = ccc38069246a78f9b74f28088655d525
 	md5sums = 8901d334c53c04738cbd3518c80fa37c
 	md5sums = bb40bf9c2fa3982e2872b5d32de3b006
 
diff --git a/PKGBUILD b/PKGBUILD
index 9f6e14f..7d1d037 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,7 +26,7 @@ source=(http://github.com/FacialTurd/The-Powder-Toy/archive/v${_sver}.${_mver}.$
 	${pkgname}.desktop ${pkgname}.png)
 
 prepare() {
-  cd "${srcdir}/The-Powder-Toy-${_sver}.${_mver}.${_build}"
+  cd "${srcdir}/The-Powder-Toy-mod1-${_sver}.${_mver}.${_build}"
 
   #Disable the updates. I cant get the buildsystem to not compile a beta version.
   #Also I do not know the logic behind the generated snapshotids.
@@ -36,14 +36,16 @@ prepare() {
 
 build() {
   unset _xarch _ssever _native
-  cd "${srcdir}/The-Powder-Toy-${_sver}.${_mver}.${_build}"
+  cd "${srcdir}/The-Powder-Toy-mod1-${_sver}.${_mver}.${_build}"
 
   if $(grep -q 'pni' -i /proc/cpuinfo); then
     _ssever="sse3"
   elif $(grep -q sse2 -i /proc/cpuinfo); then
     _ssever="sse2"
-  else
+  elif $(grep -q sse -i /proc/cpuinfo); then
     _ssever="sse"
+  else
+    _ssever="no-sse"
   fi
 
 #  if [ NATIVE_OPTIMIZATIONS == "y"  ] || $(echo ${CXXFLAGS} | grep -q -- "-march=native"); then
@@ -63,11 +65,11 @@ build() {
 }
 
 package() {
-  install -Dm 755 "${srcdir}/The-Powder-Toy-${_sver}.${_mver}.${_build}/build/binary" "${pkgdir}/usr/bin/powder-toy"
+  install -Dm 755 "${srcdir}/The-Powder-Toy-mod1-${_sver}.${_mver}.${_build}/build/binary" "${pkgdir}/usr/bin/powder-toy"
   install -Dm 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
   install -Dm 644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
 }
 
-md5sums=('1e6fbf990995cb0b1a372e5c3b74fb94'
+md5sums=('ccc38069246a78f9b74f28088655d525'
          '8901d334c53c04738cbd3518c80fa37c'
          'bb40bf9c2fa3982e2872b5d32de3b006')