commit 3838c90a5074ab96cabf4092cc29c9de596a6d76
parent 6990aaa3f5fa1dc5275bc73641772c8e4e536b87
Author: Kyle Milz <kyle@0x30.net>
Date: Sun, 31 Jul 2016 10:45:10 -0600
pkg: use 0.0 as version instead of 0
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/pkg/openbsd/devel/citrun/Makefile b/pkg/openbsd/devel/citrun/Makefile
@@ -2,7 +2,7 @@
COMMENT = see your source code run
-DISTNAME = citrun-0
+DISTNAME = citrun-0.0
CATEGORIES = devel
HOMEPAGE = http://cit.run
diff --git a/pkg/pkg.sh b/pkg/pkg.sh
@@ -9,11 +9,12 @@ if [ "${1}" != "citrun" -a "${1}" != "ccitrunrun" ]; then
exit 2;
fi
+ver="0.0"
portname="${1}"
uname=`uname`
if [ "$uname" = "OpenBSD" ]; then
- pkg_path=/usr/ports/packages/`uname -m`/all/${portname}-0.tgz
+ pkg_path=/usr/ports/packages/`uname -m`/all/${portname}-${ver}.tgz
# Make sure package building doesn't rely on anything that's already installed
doas pkg_delete $portname || true
@@ -24,7 +25,7 @@ if [ "$uname" = "OpenBSD" ]; then
export NO_CHECKSUM=1
# Always re-fetch the latest sources
- rm -f /usr/ports/distfiles/${portname}-0.tar.gz
+ rm -f /usr/ports/distfiles/${portname}-${ver}.tar.gz
# The 'test' target will do a full build first
make -C openbsd/devel/$portname clean=all