mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit ec6f37846e3bb751d1fa27bbd7885bf92c9a4acf
parent bab466621aa7a761adfe957e9e8499c031f8f641
Author: z3bra <willyatmailoodotorg>
Date:   Mon Jan 18 19:35:36 2016

Use /man for manpages

Diffstat:
 config.mk   | 4 ++--
 default.mk  | 4 ++--
 mksh/mkfile | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/config.mk b/config.mk @@ -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 diff --git a/default.mk b/default.mk @@ -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 @@ -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/);; diff --git a/mksh/mkfile b/mksh/mkfile @@ -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