2.4
ablfs
ablfs-more
legacy
new_features
trunk
Last change
on this file since 4c6f54f 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.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # $Id$
|
---|
4 |
|
---|
5 | set -e
|
---|
6 | cd $PKGDIR
|
---|
7 |
|
---|
8 | ./configure --prefix=/usr
|
---|
9 | make
|
---|
10 | if ! [ -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
|
---|
16 | fi
|
---|
17 | make DESTDIR=$PKG_DEST install
|
---|
18 | install -v -m644 -D htmldoc/tidy.1 \
|
---|
19 | $PKG_DEST/usr/share/man/man1/tidy.1
|
---|
20 | install -v -m755 -d $PKG_DEST/usr/share/doc/tidy-cvs_20101110
|
---|
21 | install -v -m644 htmldoc/*.{html,gif,css} \
|
---|
22 | $PKG_DEST/usr/share/doc/tidy-cvs_20101110
|
---|
23 | if ! [ -z $PKG_DEST ]; then
|
---|
24 | rm -fv $PKG_DEST/{,usr/}lib64
|
---|
25 | rm -fv $PKG_DEST/usr/{man,doc,info}
|
---|
26 | for dir in $PKG_DEST/usr/share/{doc,info,man}; do
|
---|
27 | [[ -z $(ls $dir) ]] && rmdir -v $dir
|
---|
28 | done
|
---|
29 | for dir in $PKG_DEST/usr/{lib,share}; do
|
---|
30 | [[ -z $(ls $dir) ]] && rmdir -v $dir
|
---|
31 | done
|
---|
32 | for dir in $PKG_DEST/{lib,usr}; do
|
---|
33 | [[ -z $(ls $dir) ]] && rmdir -v $dir
|
---|
34 | done
|
---|
35 | packInstall
|
---|
36 | fi
|
---|
37 | rm -rf $PKG_DEST
|
---|
38 |
|
---|
39 | exit
|
---|
Note:
See
TracBrowser
for help on using the repository browser.