diff options
Diffstat (limited to 'desktop/cwm/cwm.SlackBuild')
-rw-r--r-- | desktop/cwm/cwm.SlackBuild | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/desktop/cwm/cwm.SlackBuild b/desktop/cwm/cwm.SlackBuild index b439546932..dfe11415a0 100644 --- a/desktop/cwm/cwm.SlackBuild +++ b/desktop/cwm/cwm.SlackBuild @@ -23,11 +23,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20180914 bkw: +# - actually use SLKCFLAGS (BUILD=2). +# - minor script simplification/cleanup. +# - switch to github download link for ease of version tracking. + # 20180802 bkw: take over maintenance, no script changes. PRGNAM=cwm VERSION=${VERSION:-6.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -66,24 +71,20 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -make PREFIX=/usr \ -MANPREFIX=/usr/man \ -DESTDIR="$PKG" \ -install +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -install -m 0755 -D $CWD/xinitrc.cwm $PKG/etc/X11/xinit/xinitrc.cwm +sed -i "s,-O2,$SLKCFLAGS," Makefile -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +make \ + PREFIX=/usr \ + MANPREFIX=/usr/man \ + DESTDIR="$PKG" \ + install -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +strip $PKG/usr/bin/$PRGNAM +gzip -9 $PKG/usr/man/man?/*.? +install -m 0755 -D $CWD/xinitrc.$PRGNAM $PKG/etc/X11/xinit/xinitrc.$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README $PKG/usr/doc/$PRGNAM-$VERSION |