Files
chromebrew/packages/mlocate.rb
Kriskras99 3a51e958df Replace mlocate download url
fedorahosted is being shutdown, replaced with pagure.io the official replacement
2017-04-24 21:58:34 +02:00

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