mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
18 lines
1.0 KiB
Ruby
18 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Mlocate < Package
|
|
version '0.26-1'
|
|
source_url 'https://releases.pagure.org/mlocate/mlocate-0.26.tar.xz' # software source tarball url
|
|
source_sha1 'c6e6d81b25359c51c545f4b8ba0f3b469227fcbc' # source tarball sha1 sum
|
|
|
|
def self.build # self.build contains commands needed to build the software from source
|
|
system "sed -i 's/groupname = mlocate/groupname = chronos/g' Makefile.*" # change groupname in all Makefiles
|
|
system "./configure"
|
|
system "make" # ordered chronologically
|
|
end
|
|
|
|
def self.install # self.install contains commands needed to install the software on the target system
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system
|
|
end
|
|
end
|