pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

zlua: fixup Makefile and MESSAGE a bit



Module Name:	pkgsrc-wip
Committed By:	Dean Matzkov <bapabooiee%gmail.com@localhost>
Pushed By:	bapa
Date:		Sat Feb 2 17:04:09 2019 -0700
Changeset:	d44d720ba5a9996248879666aabcd1318d61d87c

Modified Files:
	zlua/MESSAGE
	zlua/Makefile

Log Message:
zlua: fixup Makefile and MESSAGE a bit

As per the kind recommendations of leot.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d44d720ba5a9996248879666aabcd1318d61d87c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 zlua/MESSAGE  |  6 +++---
 zlua/Makefile | 11 +++++------
 2 files changed, 8 insertions(+), 9 deletions(-)

diffs:
diff --git a/zlua/MESSAGE b/zlua/MESSAGE
index d281ee6727..ab27805aaa 100644
--- a/zlua/MESSAGE
+++ b/zlua/MESSAGE
@@ -5,12 +5,12 @@ To begin using z.lua, put something like the following in
 either ~/.profile or ~/.bashrc:
 
 if [ -e /usr/pkg/bin/z.lua ]; then
-	eval "$(lua /usr/pkg/bin/z.lua --init posix)"
+    eval "$(lua ${PREFIX}/bin/z.lua --init posix)"
 fi
 
 Then, as z.lua learns your habits, you may use the following
 command to quickly jump around your filesystem:
-    $ z SOME_DIRECTORY
+    z SOME_DIRECTORY
 
 z.lua also has explicit support for other shells, so
 you may want to consider replacing the `--init posix'
@@ -22,6 +22,6 @@ above with:
 	    -or-
     z.lua --init zsh
 
-See /usr/pkg/share/doc/zlua/README.md for more details.
+See ${PREFIX}/share/doc/zlua/README.md for more details.
 
 ===========================================================================
diff --git a/zlua/Makefile b/zlua/Makefile
index 14ad6ba173..8b5de7984a 100644
--- a/zlua/Makefile
+++ b/zlua/Makefile
@@ -1,7 +1,7 @@
 # $NetBSD$
 
-PKGNAME=	zlua-0.0.0.20190131
-DISTNAME=	z.lua-${PKGVERSION_NOREV}
+DISTNAME=	z.lua-0.0.0.20190131
+PKGNAME=	${DISTNAME:S/z.lua/zlua/}
 CATEGORIES=		shells
 MASTER_SITES=	${MASTER_SITE_GITHUB:=skywind3000/}
 GITHUB_PROJECT=	z.lua
@@ -12,17 +12,16 @@ HOMEPAGE=	https://github.com/skywind3000/z.lua
 COMMENT=	Tool that lets you quickly jump around your filesystem
 LICENSE=	mit
 
+NO_BUILD=	yes
+
 # Upstream has no releases, so we don't use ${DISTNAME} here.
-WRKSRC=	${WRKDIR}/z.lua-${GITHUB_TAG}
+WRKSRC=	${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
 
 INSTALLATION_DIRS+=		bin
 INSTALLATION_DIRS+=		share/${PKGBASE}
 INSTALLATION_DIRS+=		share/doc/${PKGBASE}
 
 
-do-build:
-	# do nothing
-
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/z.lua ${DESTDIR}${PREFIX}/bin
 	${INSTALL_DATA} ${WRKSRC}/omz.plugin.zsh ${DESTDIR}${PREFIX}/share/${PKGBASE}


Home | Main Index | Thread Index | Old Index