2.4
ablfs-more
legacy
new_features
trunk
Last change
on this file since 897416c 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:
738 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # $Id$
|
---|
4 |
|
---|
5 | set -e
|
---|
6 | cd $PKGDIR
|
---|
7 | ./configure --prefix=/usr
|
---|
8 | make
|
---|
9 | if ! [ -z $PKG_DEST ]; then
|
---|
10 | mkdir -pv $PKG_DEST/{lib,usr/{share/{man,doc,info},lib}}
|
---|
11 | ln -sv share/{man,doc,info} $PKG_DEST/usr
|
---|
12 | case $(uname -m) in
|
---|
13 | x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;;
|
---|
14 | esac
|
---|
15 | fi
|
---|
16 | make DESTDIR=$PKG_DEST install
|
---|
17 | if ! [ -z $PKG_DEST ]; then
|
---|
18 | rm -fv $PKG_DEST/{,usr/}lib64
|
---|
19 | rm -fv $PKG_DEST/usr/{man,doc,info}
|
---|
20 | for dir in $PKG_DEST/usr/share/{doc,info,man}; do
|
---|
21 | [[ -z $(ls $dir) ]] && rmdir -v $dir
|
---|
22 | done
|
---|
23 | for dir in $PKG_DEST/usr/{lib,share}; do
|
---|
24 | [[ -z $(ls $dir) ]] && rmdir -v $dir
|
---|
25 | done
|
---|
26 | for dir in $PKG_DEST/{lib,usr}; do
|
---|
27 | [[ -z $(ls $dir) ]] && rmdir -v $dir
|
---|
28 | done
|
---|
29 | packInstall
|
---|
30 | fi
|
---|
31 | rm -rf $PKG_DEST
|
---|
32 |
|
---|
33 | exit
|
---|
Note:
See
TracBrowser
for help on using the repository browser.