Commit 8b981410 authored by Casey Strouse's avatar Casey Strouse

Add smestat (0.01.16) package

Smemstat reports the physical memory usage taking into consideration shared memory.

Tested as working properly on Samsung XE50013-K01US.
parent 00023b89
require 'package'
class Smemstat < Package
version '0.01.16'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-0.01.16.tar.gz'
source_sha1 '4efdd89afa15ea7e4cb302653418935dab3c626a'
depends_on "ncurses"
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
system "sed -i '/^CFLAGS += -Wall/s/$/ -I\\/usr\\/local\\/include\\/ncurses/' Makefile"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment