tUse /man for manpages - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit ec6f37846e3bb751d1fa27bbd7885bf92c9a4acf
(DIR) parent bab466621aa7a761adfe957e9e8499c031f8f641
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Mon, 18 Jan 2016 19:35:36 +0100
Use /man for manpages
Diffstat:
M config.mk | 4 ++--
M default.mk | 4 ++--
M mksh/mkfile | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/config.mk b/config.mk
t@@ -14,9 +14,9 @@ CHOST = ${TOOLCHAIN_TRIPLET}
CBUILD = ${TOOLCHAIN_TRIPLET}
CPPFLAGS =
CFLAGS = ${CPPFLAGS}
-LDFLAGS = -static -s
+LDFLAGS = -static
CONFIGURE = "--prefix=
- --mandir=/share/man
+ --mandir=/man
--libdir=/lib
--includedir=/include
--disable-nls
(DIR) diff --git a/default.mk b/default.mk
t@@ -30,7 +30,7 @@ cleanup:QV: install
find . -name 'info' -type d -exec rm -r {} +
find . -name 'doc' -type d -exec rm -r {} +
find . -name 'pkgconfig' -type d -exec rm -r {} +
- if [ -z "$(ls ./share)" ]; then
+ if [ -d ./share ] && [ -z "$(ls ./share)" ]; then
rmdir ./share
fi
t@@ -63,7 +63,7 @@ fetch-archive:QV:
case $out in
*.tar.bz2)
src=$(bzip2 -cd $out|tar -xv|sed -n 1p|cut -f1 -d/);;
- *.tar.gz)
+ *.tar.gz|*.tgz)
src=$(gzip -cd $out|tar -xv|sed -n 1p|cut -f1 -d/);;
*.tar.xz)
src=$(xz -cd $out|tar -xv|sed -n 1p|cut -f1 -d/);;
(DIR) diff --git a/mksh/mkfile b/mksh/mkfile
t@@ -10,10 +10,10 @@ build:QV: fetch patch
/bin/sh Build.sh -r
install:QV: build
+ cd $pkg-$ver
mkdir -p $destdir/bin
mkdir -p $destdir/etc
- mkdir -p $destdir/share/man/man1
- cd $pkg-$ver
+ mkdir -p $destdir/man/man1
install -m 0755 mksh $destdir/bin/mksh
install -m 0644 mksh.1 $destdir/man/man1/mksh.1
install -m 0644 dot.mkshrc $destdir/etc/mkshrc