source: common/blfs-tool-deps/907-gpm@ 743414b

2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 743414b was 7072e1f, checked in by Thomas Pegg <thomasp@…>, 13 years ago

Commit Pierre Labastie's patch for including package management support in jhalfs. NOTE: Package management is by default disabled.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#!/bin/bash
2
3# $Id$
4
5set -e
6cd $PKGDIR
7
8./configure --prefix=/usr --sysconfdir=/etc
9make
10if ! [ -z $PKG_DEST ]; then
11 mkdir -pv $PKG_DEST/{lib,usr/{share/{man,doc,info},lib}}
12 ln -sv share/{man,doc,info} $PKG_DEST/usr
13 case $(uname -m) in
14 x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;;
15 esac
16fi
17make DESTDIR=$PKG_DEST install
18ln -v -s libgpm.so.2.1.0 $PKG_DEST/usr/lib/libgpm.so
19mkdir -pv $PKG_DEST/etc
20install -v -m644 conf/gpm-root.conf $PKG_DEST/etc
21install -v -m755 -d $PKG_DEST/usr/share/doc/gpm-1.20.6
22chmod -v 755 doc/{changes,support}
23chmod -v 644 doc/{changes/*,support/*,FAQ,HACK_GPM,README*}
24cp -v -R doc/{FAQ,HACK_GPM,README*,changes,support} \
25 $PKG_DEST/usr/share/doc/gpm-1.20.6
26if ! [ -z $PKG_DEST ]; then
27 rm -fv $PKG_DEST/{,usr/}lib64
28 rm -fv $PKG_DEST/usr/{man,doc,info}
29 for dir in $PKG_DEST/usr/share/{doc,info,man}; do
30 [[ -z $(ls $dir) ]] && rmdir -v $dir
31 done
32 for dir in $PKG_DEST/usr/{lib,share}; do
33 [[ -z $(ls $dir) ]] && rmdir -v $dir
34 done
35 for dir in $PKG_DEST/{lib,usr}; do
36 [[ -z $(ls $dir) ]] && rmdir -v $dir
37 done
38 packInstall
39fi
40rm -rf $PKG_DEST
41
42exit
Note: See TracBrowser for help on using the repository browser.