diff --git a/.builddeb b/.builddeb new file mode 100644 index 0000000..e69de29 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c6081d2 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +DIR=$(shell basename $(CURDIR)) + +VERSION=`gawk '$$1 == "Version:"{print $$2}' $(DIR)/DEBIAN/control` +ARCH=`gawk '$$1 == "Architecture:"{print $$2}' $(DIR)/DEBIAN/control` +COMMIT = $(shell date "+xe%Y%m%d_%H%M%S") + +SUBDIRS := $(shell find $(DIR) -type d -print) +FILTER := $(abspath .git% %.deb .publish-git .builddeb %.swp Makefile) +FILTERORIG := $(abspath .git% %.deb .publish-git .builddeb %.swp Makefile) $(shell test -e noupdate.files && cat noupdate.files) /DEBIAN% +FILES := $(filter-out $(FILTER), $(abspath $(shell find . -mindepth 1 -type f -print) )) +ORIGS := $(filter-out $(FILTERORIG), $(realpath $(subst ./$(DIR),,$(shell sudo find . -mindepth 2 -type f -print)))) +FILESGIT := $(filter-out $(abspath .git%), $(abspath $(shell find . -mindepth 1 -type f -print))) + +#all: $(DIR)/DEBIAN/control + +#$(DIR)/DEBIAN/control: $(FILES) + +all: .builddeb + @#echo FILE $(FILESGIT) + +.builddeb: $(FILES) + @#echo FILT $(FILTER) + @#echo FILE $(FILES) + @echo `gawk -f ../increment.awk $(DIR)/DEBIAN/control` + sed -e "s/^Version:.*/`gawk -f ../increment.awk $(DIR)/DEBIAN/control`/" $(DIR)/DEBIAN/control > $(DIR)/DEBIAN/control.tmp + mv $(DIR)/DEBIAN/control.tmp $(DIR)/DEBIAN/control + fakeroot dpkg-deb --build $(DIR) "$(DIR)_$(VERSION)_$(ARCH).deb" + ln -sf "$(DIR)_$(VERSION)_$(ARCH).deb" "$(DIR).deb" + aptly repo add xundeenergie "$(DIR)_$(VERSION)_$(ARCH).deb" + touch .builddeb + +.update: $(ORIGS) + @#for i in $(ORIGS); do $$i;done + @echo "Copy originals to $(DIR)" + @for i in $(ORIGS); do sudo cp -uv $$i $(DIR)$$i;done + touch .update + +.publish-git: $(FILESGIT) + fakeroot git add . + fakeroot git commit -m $(COMMIT) && git push origin master || exit 0 + touch .publish-git + diff --git a/ricoh-sp100.deb b/ricoh-sp100.deb new file mode 120000 index 0000000..96c90f7 --- /dev/null +++ b/ricoh-sp100.deb @@ -0,0 +1 @@ +ricoh-sp100_0.1.2_all.deb \ No newline at end of file diff --git a/ricoh-sp100/DEBIAN/control b/ricoh-sp100/DEBIAN/control new file mode 100644 index 0000000..efb0d5c --- /dev/null +++ b/ricoh-sp100/DEBIAN/control @@ -0,0 +1,12 @@ +Package: ricoh-sp100 +Version: 0.1.2 +Section: cups +Priority: extra +Architecture: all +Maintainer: Jakobus Schürz +Homepage: http://github.com/xundeenergie/ricoh-sp100 +Provides: ricoh-sp100 +Depends: ghostscript, graphicsmagick-imagemagick-compat|imagemagick, jbigkit-bin +Recommends: inotify-tools +Description: Support for Ricoh SP100-Series + Supports Ricoh SP 100SNF and Ricoh SP 204SNF diff --git a/check-requirements b/ricoh-sp100/check-requirements similarity index 100% rename from check-requirements rename to ricoh-sp100/check-requirements diff --git a/RICOH_Aficio_SP_100.ppd b/ricoh-sp100/etc/cups/ppd/RICOH_Aficio_SP_100.ppd similarity index 100% rename from RICOH_Aficio_SP_100.ppd rename to ricoh-sp100/etc/cups/ppd/RICOH_Aficio_SP_100.ppd diff --git a/RICOH_Aficio_SP_204.ppd b/ricoh-sp100/etc/cups/ppd/RICOH_Aficio_SP_204.ppd similarity index 100% rename from RICOH_Aficio_SP_204.ppd rename to ricoh-sp100/etc/cups/ppd/RICOH_Aficio_SP_204.ppd diff --git a/pstoricohddst-gdi b/ricoh-sp100/usr/lib/cups/filters/pstoricohddst-gdi similarity index 100% rename from pstoricohddst-gdi rename to ricoh-sp100/usr/lib/cups/filters/pstoricohddst-gdi diff --git a/ricoh-sp100_0.1.1_all.deb b/ricoh-sp100_0.1.1_all.deb new file mode 100644 index 0000000..768dadb Binary files /dev/null and b/ricoh-sp100_0.1.1_all.deb differ diff --git a/ricoh-sp100_0.1.2_all.deb b/ricoh-sp100_0.1.2_all.deb new file mode 100644 index 0000000..f4d7846 Binary files /dev/null and b/ricoh-sp100_0.1.2_all.deb differ