Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.83 KB | None | 0 0
  1. $maintainer = 'Thomas Chace <ithomashc@gmail.com>'
  2. $package = 'smalltalk'
  3. $version = '3.2.2'
  4. $license = 'GPL'
  5. $arch = ['i686']
  6. $deps = []
  7. $url = ''
  8. $desc = 'A fast smalltalk-80 implementation.'
  9. $longdesc = ''
  10. $source = "ftp://ftp.gnu.org/gnu/smalltalk/#{$package}-#{$version}.tar.xz"
  11. $sourcetype = 'ftp'
  12. $builddeps = []
  13.  
  14. def install()
  15.     `ln -s /usr/bin/gst /usr/bin/smalltalk`
  16. end
  17.  
  18. def remove()
  19.     `rm /usr/bin/smalltalk`
  20. end
  21.  
  22. def build()
  23.     base_path = File.expand_path(File.dirname("data"))
  24.     system("tar -xf #{$package}-#{$version}.tar.xz")
  25.     Dir.chdir("#{$package}-#{$version}")
  26.     system("./configure --prefix=/usr --with-imagedir=/var/lib/smalltalk --with-system-libffi --with-system-libsigsegv --enable-jit --disable-gtktest --enable-gtk=no --with-x=no")
  27.     system("make -s DESTDIR=#{base_path} install")
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement