I elected to drop cups-dev, I am only a simple coder but believe it not bashing my head against the errors I was getting for ppd.h
so driver currently looks like this
// Include necessary files...
#include <font.defs>
#include <media.defs>
#include <label.h>
// Common stuff for all drivers...
Attribute "cupsVersion" "" "1.4"
Attribute "FileSystem" "" "False"
Attribute "LandscapeOrientation" "" "Plus90"
Attribute "TTRasterizer" "" "Type42"
Copyright "Copyright 2007-2011 by Apple Inc."
Copyright "Copyright 1997-2007 by Easy Software Products."
Copyright ""
Copyright "These coded instructions, statements, and computer programs are the"
Copyright "property of Apple Inc. and are protected by Federal copyright"
Copyright "law. Distribution and use rights are outlined in the file \"LICENSE.txt\""
Copyright "which should have been included with this file. If this file is"
Copyright "file is missing or damaged, see the license at \"http://www.cups.org/\"."
// fonts
Font *
// for some reason as per sample give v again
Version "1.4"
// Manufacturer, model name, and version
Manufacturer "AMTECH"
ModelName "AMTECH 120"
Version 1.0
// Specify that this driver uses the label driver
DriverType label
// Each filter provided by the driver...
Filter application/vnd.cups-raster 0 rastertolabel
// Do we have colour
ColorDevice false
// Supported resolutions
*Resolution k 1 0 0 0 "203dpi/203 DPI"
// throughput
Throughput 8
// Specify the name of the PPD file we want to generate...
PCFileName "amtech.ppd"
but its not working so I give up and hope with your programming skills etc you will have better luck
I redesigned it based on sample.drv from /usr/local/share/cups/drv with some input from your file such as your resolutions
I deliberately left out page dimensions etc, the cupstestppd should show up or you could view the file but I can't generate it.
So I am truly giving up, I can't help any further, if at all.
just to repeat my errors and maybe you can work it out
ppdc -tvv label.drv (supposed to say PASSED) (but I deleted my old driver so can't check any more)
(if it passed, then)
ppdc -d /tmp label.drv
cupstestppd -vv /tmp/*.ppd
(if it passes all try it)