debian swirl logo

Back to the packages list kawari8

#!/usr/bin/make -f
# This file is public domain.

UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-.*/\1/p')
ZIP_VERSION := $(shell echo $(UPSTREAM_VERSION) | sed -e 's/\.//g')
DEB_TAR_SRCDIR                  := kawari-$(ZIP_VERSION)/build/src
DEB_AUTO_CLEANUP_RCS            := yes

include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk

DEB_MAKE_MAKEFILE	:= gcc.mak
DEB_MAKE_CLEAN_TARGET	:= 

build/kawari8::
		docbook-to-man debian/kosui.sgml > kosui.6
		docbook-to-man debian/kawari_encode.sgml > kawari_encode.6

binary-install/kawari8::
		mv debian/kawari8/usr/share/doc/kawari8/document \
			debian/kawari8/usr/share/doc/kawari8/html

cleanbuilddir/kawari8::
		$(RM) debian/stamp-patch-*.patch

get-orig-source::
		mkdir $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig
		cd $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig && wget -c \
			http://jaist.dl.sourceforge.net/sourceforge/kawari/kawari-$(ZIP_VERSION).zip
		tar -czvf kawari8_$(UPSTREAM_VERSION).orig.tar.gz kawari8-$(UPSTREAM_VERSION).orig
		rm -rf $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig

Builds:

kawari8
pseudo ai shiori module used to create ghosts for ukagaka