Subject: pkg/18008: new package time/pclock (Simple analog clock designed for WindowMaker)
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 08/21/2002 08:01:00
>Number:         18008
>Category:       pkg
>Synopsis:       new package time/pclock (Simple analog clock designed for WindowMaker)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 20 23:02:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lubomir Sedlacik
>Release:        NetBSD 1.6_BETA5
>Organization:
>Environment:
>Description:

pclock is a simple analog clock program designed to run under WindowMaker
window manager (also runs fine on any other window manager which supports
dock apps, such as PWM).  Any 64x64 pixmap may be used as a background.

>How-To-Repeat:

extract attached shar archive into pkgsrc/time

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pclock/DESCR
#	pclock/Makefile
#	pclock/PLIST
#	pclock/distinfo
#	pclock/patches
#	pclock/patches/patch-aa
#
echo x - pclock/DESCR
sed 's/^X//' >pclock/DESCR << 'END-of-pclock/DESCR'
Xpclock is a simple analog clock program designed to run under WindowMaker
Xwindow manager (also runs fine on any other window manager which supports
Xdock apps, such as PWM).  Any 64x64 pixmap may be used as a background.
END-of-pclock/DESCR
echo x - pclock/Makefile
sed 's/^X//' >pclock/Makefile << 'END-of-pclock/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=	pclock-0.13.1
XCATEGORIES=	time x11
XMASTER_SITES=	http://bnt.kourakos.com/~awk/programs/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	salo@Xtrmntr.org
XHOMEPAGE=	http://www.kourakos.com/~awk/programs/pclock/
XCOMMENT=	Simple analog clock designed for WindowMaker
X
XUSE_X11BASE=		YES
XUSE_BUILDLINK_ONLY=	YES
X
XMAKE_ENV+=	LN=${LN}
X
Xpost-install:
X		${INSTALL_DATA_DIR} ${PREFIX}/share/pclock
X		${INSTALL_DATA} ${WRKSRC}/XPM/* ${PREFIX}/share/pclock/
X		${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pclock
X		${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/pclock
X		${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/pclock
X		${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/pclock
X
X.include "../../graphics/xpm/buildlink.mk"
X.include "../../mk/x11.buildlink.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-pclock/Makefile
echo x - pclock/PLIST
sed 's/^X//' >pclock/PLIST << 'END-of-pclock/PLIST'
X@comment $NetBSD$
Xbin/pclock
Xshare/doc/pclock/CHANGES
Xshare/doc/pclock/CREDITS
Xshare/doc/pclock/README
Xshare/pclock/glowclock.xpm
Xshare/pclock/green.xpm
Xshare/pclock/moonphase.xpm
Xshare/pclock/oclock.xpm
Xshare/pclock/radar.xpm
Xshare/pclock/rolex2.xpm
Xshare/pclock/rolexgmt.xpm
Xshare/pclock/round-3d.xpm
Xshare/pclock/square.xpm
Xshare/pclock/swatch.xpm
Xshare/pclock/time-icon.xpm
Xshare/pclock/will-return.xpm
Xshare/pclock/wmaker-tile.xpm
Xshare/pclock/wood-tile.xpm
Xshare/pclock/wristwatch.xpm
Xshare/pclock/yellow-diamond.xpm
X@dirrm share/doc/pclock
X@dirrm share/pclock
END-of-pclock/PLIST
echo x - pclock/distinfo
sed 's/^X//' >pclock/distinfo << 'END-of-pclock/distinfo'
X$NetBSD$
X
XSHA1 (pclock-0.13.1.tgz) = 212b8b6a05d76e70ff34fb3bd3e39ed991e2c7e1
XSize (pclock-0.13.1.tgz) = 53046 bytes
XSHA1 (patch-aa) = 8b8fb3590ea1543462aa3bc08c8dfacb054ecee4
END-of-pclock/distinfo
echo c - pclock/patches
mkdir -p pclock/patches > /dev/null 2>&1
echo x - pclock/patches/patch-aa
sed 's/^X//' >pclock/patches/patch-aa << 'END-of-pclock/patches/patch-aa'
X$NetBSD$
X
X+++ src/Makefile	Tue Aug 20 02:36:32 2002
X@@ -1,4 +1,4 @@
X-BINDIR = /usr/X11R6/bin
X+BINDIR = ${X11BASE}/bin
X 
X PROG = pclock
X OBJS = Main.o Graphics.o getopt.o getopt1.o
X@@ -5,10 +5,8 @@
X 
X DEFAULT_XPM = round-3d.xpm
X 
X-INCDIR = -I/usr/X11R6/include -I.
X-LIBDIR = -L/usr/X11R6/lib
X-CC = gcc
X-CFLAGS = -O -s -Wall
X+INCDIR = -I.
X+LIBDIR = ${LDFLAGS}
X LIBS = -lXpm -lXext -lX11 -lm
X 
X ###############################################################################
X@@ -16,7 +14,7 @@
X all: $(PROG)
X 
X install: all
X-	install -s -m 111 -o bin -g bin $(PROG) $(BINDIR)
X+	${BSD_INSTALL_PROGRAM} $(PROG) $(BINDIR)
X 
X clean:
X 	rm -f *.o Makefile.bak Default.xpm *~ #*
X@@ -27,7 +25,7 @@
X ###############################################################################
X 
X Default.xpm:
X-	ln -s ../XPM/$(DEFAULT_XPM) $@
X+	${LN} -s ../XPM/$(DEFAULT_XPM) $@
X 
X Graphics.o: PClock.h Default.xpm
X 
END-of-pclock/patches/patch-aa
exit
>Release-Note:
>Audit-Trail:
>Unformatted: