<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>worldofgoo/worldofgoo.desktop</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,30 +3,59 @@
 pkgname=worldofgoo
 pkgver=1.41
 pkgrel=1
-pkgdesc=&quot;A physics based puzzle/construction game.&quot;
+pkgdesc=&quot;A physics based puzzle/construction game (Commercial)&quot;
 arch=('i686' 'x86_64')
 url=&quot;http://www.2dboy.com&quot;
-license=('Commercial')
+license=('custom')
 depends=('libxdamage' 'mesa' 'libstdc++5' 'libgl' 'libx11')
 [ &quot;$CARCH&quot; = &quot;x86_64&quot; ] &amp;&amp; \
 depends=('lib32-libxdamage' 'lib32-mesa' 'lib32-libstdc++5'
          'lib32-libgl' 'lib32-libx11')
-source=(WorldOfGooSetup.$pkgver.tar.gz
-        WorldOfGoo.desktop)
-md5sums=('f5afa40893d0fbcc37885191404f6d8c'
-         '25080af1fe369a296e15e568f2480124')
+source=(worldofgoo.desktop)
+md5sums=('f7b830f9f4574ae823f030bb82601edb')
 
 build() {
+  # Check if installer is in build directory, than validate
+  cd $startdir
+  _instname=WorldOfGoo
+  _instmd5=f5afa40893d0fbcc37885191404f6d8c
+  if [ ! -f ${_instname}Setup.${pkgver}.tar.gz ]; then
+    echo &quot;* World of Goo is a commercial game.&quot;
+    echo &quot;* The installer must be in:&quot;
+    echo &quot;* $(pwd)&quot;
+    echo &quot;* before this can be installed.&quot;
+    exit
+    else
+    echo &quot;* Checking if installer is the right size...&quot;
+    if [ &quot;$(md5sum ${_instname}Setup.${pkgver}.tar.gz | awk '{print $1}')&quot; == &quot;${_instmd5}&quot; ]; then
+      echo &quot;* Installer is the correct size&quot;
+      else
+      echo &quot;! The installer size check did not match.&quot;
+      exit
+    fi
+  fi
+
   cd ${srcdir}
 
-  install -d ${pkgdir}/opt \
-             ${pkgdir}/usr/bin \
-             ${pkgdir}/usr/share/applications
+  tar xzf ../${_instname}Setup.$pkgver.tar.gz
 
-  cp -R WorldOfGoo ${pkgdir}/opt
-  ln -s /opt/WorldOfGoo/WorldOfGoo ${pkgdir}/usr/bin/worldofgoo
-  install -m644 ${srcdir}/WorldOfGoo.desktop \
-  ${pkgdir}/usr/share/applications/WorldOfGoo.desktop
-}
+  # create pkgdir folders
+  install -d ${pkgdir}/usr/bin \
+             ${pkgdir}/usr/share/licenses/${pkgname} \
+             ${pkgdir}/usr/share/{applications,games,icons}
+
+  echo &quot;* Copying files...&quot;
 
+  # game folder
+  cp -R ${_instname} ${pkgdir}/usr/share/games/${pkgname}
 
+  # licenses
+  install -m644 ${_instname}/eula.txt ${pkgdir}/usr/share/licenses/${pkgname}
+
+  # executable link
+  ln -s /usr/share/games/${pkgname}/${_instname} ${pkgdir}/usr/bin/${pkgname}
+
+  # icon/.desktop
+  install -m644 ${_instname}/icons/scalable.svg ${pkgdir}/usr/share/icons/${pkgname}.svg
+  install -m644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
+}</diff>
      <filename>worldofgoo/PKGBUILD</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>worldofgoo/WorldOfGoo.desktop</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>85900238242943df07332ed674f0280f13726919</id>
    </parent>
  </parents>
  <author>
    <name>William D&#237;az</name>
    <email>wdiaz@archlinux.us</email>
  </author>
  <url>http://github.com/leprosys/pkgbuilds/commit/97de4fdc885ad7993895794039f2602b7f4665ba</url>
  <id>97de4fdc885ad7993895794039f2602b7f4665ba</id>
  <committed-date>2009-10-19T15:24:49-07:00</committed-date>
  <authored-date>2009-10-19T15:24:49-07:00</authored-date>
  <message>Modified for the Comercial version

Signed-off-by: William D&#237;az &lt;wdiaz@archlinux.us&gt;</message>
  <tree>0e04ec3461ef15842274e7bcddcffceea2325aad</tree>
  <committer>
    <name>William D&#237;az</name>
    <email>wdiaz@archlinux.us</email>
  </committer>
</commit>
