Commit cd642569 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #705 from jam7/update/mandb

Update mandb to 2.7.6.1 and strip binary and libraries.
parents c473b1a9 a4afec99
...@@ -3,9 +3,9 @@ require 'package' ...@@ -3,9 +3,9 @@ require 'package'
class Mandb < Package class Mandb < Package
description 'mandb is used to initialise or manually update index database caches that are usually maintained by man.' description 'mandb is used to initialise or manually update index database caches that are usually maintained by man.'
homepage '' homepage ''
version '2.7.6' version '2.7.6.1'
source_url 'https://download.savannah.gnu.org/releases/man-db/man-db-2.7.6.tar.xz' source_url 'http://download.savannah.gnu.org/releases/man-db/man-db-2.7.6.1.tar.xz'
source_sha1 '35a10f80d5cf6411d5c73376fcddcec1539e788a' source_sha1 '919dcb34d604faac9b18a38ead07f457d0dab501'
depends_on 'libpipeline' depends_on 'libpipeline'
depends_on 'pkgconfig' depends_on 'pkgconfig'
...@@ -19,10 +19,11 @@ class Mandb < Package ...@@ -19,10 +19,11 @@ class Mandb < Package
'--disable-cache-owner', # we can't create the user 'man' '--disable-cache-owner', # we can't create the user 'man'
'--with-pager=/usr/local/bin/less' # the pager is not at the default location '--with-pager=/usr/local/bin/less' # the pager is not at the default location
system 'make' system 'make'
system "find . -name 'lib*.so*' -print | xargs strip -S"
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
puts "" puts ""
puts "You will have to change the default PAGER environment variable to be able to use mandb:" puts "You will have to change the default PAGER environment variable to be able to use mandb:"
puts "echo \"export PAGER=/usr/local/bin/less\" >> ~/.bashrc && . ~/.bashrc" puts "echo \"export PAGER=/usr/local/bin/less\" >> ~/.bashrc && . ~/.bashrc"
......
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