2.4
ablfs
ablfs-more
legacy
new_features
trunk
Last change
on this file since e47edcf 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:
1016 bytes
|
Rev | Line | |
---|
[91ff6a9] | 1 | #!/bin/bash
|
---|
[045b2dc] | 2 |
|
---|
| 3 | # $Id$
|
---|
| 4 |
|
---|
| 5 | set -e
|
---|
[cbc8ba2] | 6 | cd $PKGDIR
|
---|
[045b2dc] | 7 |
|
---|
[7072e1f] | 8 | case `uname -m` in
|
---|
| 9 | i?86)
|
---|
| 10 | sed -i -e 's/DASM"/DASM -DNO_LCHMOD"/' unix/Makefile
|
---|
| 11 | make -f unix/Makefile linux
|
---|
| 12 | ;;
|
---|
| 13 | *)
|
---|
| 14 | sed -i -e 's/CFLAGS="-O -Wall/& -DNO_LCHMOD/' unix/Makefile
|
---|
| 15 | make -f unix/Makefile linux_noasm
|
---|
| 16 | ;;
|
---|
| 17 | esac
|
---|
| 18 | if ! [ -z $PKG_DEST ]; then
|
---|
| 19 | mkdir -pv $PKG_DEST/{lib,usr/{share/{man,doc,info},lib}}
|
---|
| 20 | ln -sv share/{man,doc,info} $PKG_DEST/usr
|
---|
| 21 | case $(uname -m) in
|
---|
| 22 | x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;;
|
---|
| 23 | esac
|
---|
| 24 | fi
|
---|
| 25 | make prefix=$PKG_DEST/usr install
|
---|
| 26 | if ! [ -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
|
---|
| 39 | fi
|
---|
| 40 | rm -rf $PKG_DEST
|
---|
[045b2dc] | 41 |
|
---|
| 42 | exit
|
---|
Note:
See
TracBrowser
for help on using the repository browser.