The following commit has been merged in the master branch:
commit 5bd2dac6faa2b9bf2752fb4e2fad1a3c83aae932
Author: Miriam Ruiz <[email protected]>
Date:   Thu Feb 26 02:02:04 2009 +0100

    Remove unneeded type dir
    Added % to replace strings
    added c-lib model

diff --git a/common/changelog b/common/changelog
index c736c2f..d14afc2 100644
--- a/common/changelog
+++ b/common/changelog
@@ -1,5 +1,5 @@
-PACKAGE (VERSION) UNRELEASED; urgency=low
+%PACKAGE% (%VERSION%-%DEBRELEASE%) UNRELEASED; urgency=low
 
   * Initial release.
 
- -- DEVELOPER NAME <develo...@email>  DATE_NOW
+ -- %DEBNAME% <%DEBEMAIL%>  %NOW_DATE%
diff --git a/create.sh b/create.sh
index 38fade7..9f43b9d 100755
--- a/create.sh
+++ b/create.sh
@@ -64,16 +64,17 @@ FILE=$(echo "${FILE}" | sed "s|MAJOR|${PACKAGE_MAJOR}|g" )
 echo "Copying ${FILE} from $f"
 
 cat $f \
-       | sed "s|PACKAGE|${PACKAGE_NAME}|g" \
-       | sed "s|MAJOR|${PACKAGE_MAJOR}|g" \
-       | sed "s|MINOR|${PACKAGE_MINOR}|g" \
-       | sed "s|VERSION|${PACKAGE_VERSION}-${DEBIAN_RELEASE}|g" \
-       | sed "s|DEVELOPER NAME|${DEBNAME}|g" \
-       | sed "s|develo...@email|${DEBEMAIL}|g" \
-       | sed "s|SHORT DESCRIPTION|${SHORT_DESCRIPTION}|g" \
-       | sed "s| LONG DESCRIPTION| ${LONG_DESCRIPTION}|g" \
-       | sed "s|DATE_NOW|$(date --rfc-2822)|g" \
-       | sed "s|YEAR_NOW|$(date +%Y)|g" \
+       | sed "s|%PACKAGE%|${PACKAGE_NAME}|g" \
+       | sed "s|%MAJOR%|${PACKAGE_MAJOR}|g" \
+       | sed "s|%MINOR%|${PACKAGE_MINOR}|g" \
+       | sed "s|%VERSION%|${PACKAGE_VERSION}|g" \
+       | sed "s|%DEBRELEASE%|${DEBIAN_RELEASE}|g" \
+       | sed "s|%DEBNAME%|${DEBNAME}|g" \
+       | sed "s|%DEBEMAIL%|${DEBEMAIL}|g" \
+       | sed "s|%SHORT%|${SHORT_DESCRIPTION}|g" \
+       | sed "s| %LONG%| ${LONG_DESCRIPTION}|g" \
+       | sed "s|%NOW_DATE%|$(date --rfc-2822)|g" \
+       | sed "s|%NOW_YEAR%|$(date +%Y)|g" \
        > "${DEST_DIR}/${FILE}"
 
 fi;
diff --git a/license/Artistic b/license/Artistic
index 682e6bd..dc0da8e 100644
--- a/license/Artistic
+++ b/license/Artistic
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -11,7 +11,7 @@ Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
 License: Artistic
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 License: Artistic
 
 License: Artistic
diff --git a/license/GPL2 b/license/GPL2
index e8febfe..69ad80e 100644
--- a/license/GPL2
+++ b/license/GPL2
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -11,7 +11,7 @@ Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
 Licence: GPL-2
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 Licence: GPL-2+
 
 Licence: GPL-2
diff --git a/license/GPL2+ b/license/GPL2+
index 1fd923a..9b3f05a 100644
--- a/license/GPL2+
+++ b/license/GPL2+
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -11,7 +11,7 @@ Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
 Licence: GPL-2+
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 Licence: GPL-2+
 
 Licence: GPL-2+
diff --git a/license/GPL3 b/license/GPL3
index ce99844..b94b2f2 100644
--- a/license/GPL3
+++ b/license/GPL3
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -11,7 +11,7 @@ Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
 Licence: GPL-3
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 Licence: GPL-3+
 
 Licence: GPL-3
diff --git a/license/GPL3+ b/license/GPL3+
index 266847e..621aa66 100644
--- a/license/GPL3+
+++ b/license/GPL3+
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -11,7 +11,7 @@ Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
 Licence: GPL-3+
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 Licence: GPL-3+
 
 Licence: GPL-3+
diff --git a/license/Perl b/license/Perl
index 20430ad..9d0a8f7 100644
--- a/license/Perl
+++ b/license/Perl
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -12,7 +12,7 @@ License-Alias: Perl
 License: Artistic | GPL-1+
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 License-Alias: Perl
 License: Artistic | GPL-1+
 
diff --git a/license/WTFPL b/license/WTFPL
index e89e137..859f1fa 100644
--- a/license/WTFPL
+++ b/license/WTFPL
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -24,6 +24,6 @@ License: other-BSD
  |   0. You just DO WHAT THE FUCK YOU WANT TO.
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 License: other-BSD
  The Debian packaging is licensed under the same license as the program.
diff --git a/license/other b/license/other
index 389b45d..dcb267c 100644
--- a/license/other
+++ b/license/other
@@ -1,8 +1,8 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
 Upstream-Source: URL://DOWNLOAD
 Upstream-Maintainer: UPSTREAM NAME <upstr...@email>
-Debianized-By: DEVELOPER NAME <develo...@email>
-Debianized-Date: DATE_NOW
+Debianized-By: %DEBNAME% <%DEBEMAIL%>
+Debianized-Date: %NOW_DATE%
 
 Files: *
 Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
@@ -12,6 +12,6 @@ Licence: other
  TEXT OF THE LICENSE
 
 Files: debian/*
-Copyright: Copyright (C) YEAR_NOW, DEVELOPER NAME <develo...@email>
+Copyright: Copyright (C) %NOW_YEAR%, %DEBNAME% <%DEBEMAIL%>
 Licence: other
  The Debian packaging is licensed under the same license as the program.
diff --git a/model/autotools-lib/control b/model/autotools-lib/control
index 1a7266f..9d74db2 100644
--- a/model/autotools-lib/control
+++ b/model/autotools-lib/control
@@ -1,33 +1,33 @@
-Source: PACKAGE
+Source: %PACKAGE%
 Section: unknown
 Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
+Maintainer: %DEBNAME% <%DEBEMAIL%>
 Build-Depends: debhelper (>= 7), dh-buildinfo, autotools-dev
 Standards-Version: 3.8.0
 Homepage: URL://HOMEPAGE
 
-Package: libPACKAGE-dev
+Package: lib%PACKAGE%-dev
 Section: libdevel
 Architecture: any
-Depends: libPACKAGEMAJOR (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
-Description: SHORT DESCRIPTION - devel
- LONG DESCRIPTION
+Depends: lib%PACKAGE%%MAJOR% (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
+Description: %SHORT% - devel
+ %LONG%
  .
  This package contains the development libraries and headers.
 
-Package: libPACKAGEMAJOR
+Package: lib%PACKAGE%%MAJOR%
 Section: libs
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version}), libPACKAGE-dev (= 
${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
+Suggests: %PACKAGE%-dbg (= ${binary:Version}), lib%PACKAGE%-dev (= 
${binary:Version})
+Description: %SHORT%
+ %LONG%
 
-Package: libPACKAGEMAJOR-dbg
+Package: lib%PACKAGE%%MAJOR%-dbg
 Section: libs
 Architecture: any
-Depends: libPACKAGEMAJOR (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
+Depends: lib%PACKAGE%%MAJOR% (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
+Description: %SHORT% - debug
+ %LONG%
  .
  This package contains the debugging symbols.
diff --git a/model/autotools-lib/rules b/model/autotools-lib/rules
old mode 100755
new mode 100644
index 0ec00a3..7a154ec
--- a/model/autotools-lib/rules
+++ b/model/autotools-lib/rules
@@ -87,7 +87,7 @@ binary-arch: install
        dh_installman
 #      dh_desktop
        dh_link
-       dh_strip --dbg-package=libPACKAGEMAJOR-dbg
+       dh_strip --dbg-package=lib%PACKAGE%%MAJOR%-dbg
        dh_compress
        dh_fixperms
 #      dh_perl
diff --git a/model/autotools/control b/model/autotools/control
index 83bc723..f10f87a 100644
--- a/model/autotools/control
+++ b/model/autotools/control
@@ -1,22 +1,22 @@
-Source: PACKAGE
+Source: %PACKAGE%
 Section: unknown
 Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
+Maintainer: %DEBNAME% <%DEBEMAIL%>
 Build-Depends: debhelper (>= 7), dh-buildinfo, autotools-dev
 Standards-Version: 3.8.0
 Homepage: URL://HOMEPAGE
 
-Package: PACKAGE
+Package: %PACKAGE%
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
+Suggests: %PACKAGE%-dbg (= ${binary:Version})
+Description: %SHORT%
+ %LONG%
 
-Package: PACKAGE-dbg
+Package: %PACKAGE%-dbg
 Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
+Depends: %PACKAGE% (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: %SHORT% - debug
+ %LONG%
  .
  This package contains the debugging symbols.
diff --git a/model/autotools/rules b/model/autotools/rules
old mode 100755
new mode 100644
index 8431e3d..d5b76f4
--- a/model/autotools/rules
+++ b/model/autotools/rules
@@ -52,7 +52,7 @@ install: build
        dh_testroot
        dh_prep
        dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/PACKAGE install
+       $(MAKE) DESTDIR=$(CURDIR)/debian/%PACKAGE% install
 
 # Build architecture-independent files here.
 binary-indep: install
@@ -78,7 +78,7 @@ binary-arch: install
        dh_installman
 #      dh_desktop
        dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
+       dh_strip --dbg-package=%PACKAGE%-dbg
        dh_compress
        dh_fixperms
 #      dh_perl
diff --git a/model/c-lib/Makefile b/model/c-lib/Makefile
new file mode 100644
index 0000000..7541b44
--- /dev/null
+++ b/model/c-lib/Makefile
@@ -0,0 +1,73 @@
+LIBRARY=lib%PACKAGE%
+
+all: $(LIBRARY).a $(LIBRARY).so
+
+MAJOR=%MAJOR%
+MINOR=%MINOR%
+
+SOURCES = $(shell find . -name "*.c")
+INCLUDE_DIR = include
+
+SHARED_OBJS = $(SOURCES:.c=.shared.o)
+STATIC_OBJS = $(SOURCES:.c=.static.o)
+
+EXTRA_CFLAGS=-I$(INCLUDE_DIR)
+STATIC_CFLAGS= -O2 -g -Wall $(EXTRA_CFLAGS)
+SHARED_CFLAGS= $(STATIC_CFLAGS) -fPIC
+
+LDFLAGS= -Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined
+EXTRA_LDFLAGS=
+LIBS=
+
+$(LIBRARY).so.$(MAJOR).$(MINOR): $(SHARED_OBJS)
+       g++ $(LDFLAGS) $(EXTRA_LDFLAGS) -shared \
+               -Wl,-soname,$(LIBRARY).so.$(MAJOR) \
+               -o $(LIBRARY).so.$(MAJOR).$(MINOR) \
+               $+ -o $@ $(LIBS)
+
+$(LIBRARY).so: $(LIBRARY).so.$(MAJOR).$(MINOR)
+       rm -f $...@.$(MAJOR)
+       ln -s $...@.$(MAJOR).$(MINOR) $...@.$(MAJOR)
+       rm -f $@
+       ln -s $...@.$(MAJOR) $@
+
+$(LIBRARY).a: $(STATIC_OBJS)
+       ar cru $@ $+
+
+%.shared.o: %.cpp
+       g++ -o $@ -c $+ $(SHARED_CFLAGS)
+
+%.shared.o: %.c
+       gcc -o $@ -c $+ $(SHARED_CFLAGS)
+
+%.so : %.o
+       g++ $(LDFLAGS) $(EXTRA_LDFLAGS) -shared $^ -o $@
+
+%.static.o: %.cpp
+       g++ -o $@ -c $+ $(STATIC_CFLAGS)
+
+%.static.o: %.c
+       gcc -o $@ -c $+ $(STATIC_CFLAGS)
+
+clean:
+       rm -f $(SHARED_OBJS)
+       rm -f $(STATIC_OBJS)
+       rm -f $(FIXED_OBJS)
+       rm -f $(STATIC_FIXED_OBJS)
+       rm -f *.so *.so* *.a *~
+
+DESTDIR=
+
+install: $(LIBRARY).a $(LIBRARY).so
+       mkdir -p "$(DESTDIR)/usr/lib/"
+       cp -a *.a "$(DESTDIR)/usr/lib/"
+       cp -a *.so* "$(DESTDIR)/usr/lib/"
+       mkdir -p "$(DESTDIR)/usr/include/"
+
+       find $(INCLUDE_DIR) -name "*.h" | \
+               while read f; do \
+                       t=`echo "$$f" | sed -e 
's|^$(INCLUDE_DIR)/|/usr/include/%PACKAGE%/|'` ; \
+                       d=`dirname "$$t"`; \
+                       mkdir -p "$(DESTDIR)/$$d" ; \
+                       cp "$$f" "$(DESTDIR)/$$t"; \
+               done
diff --git a/model/c-lib/PACKAGE.pc b/model/c-lib/PACKAGE.pc
new file mode 100644
index 0000000..6c053fe
--- /dev/null
+++ b/model/c-lib/PACKAGE.pc
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/%PACKAGE%
+
+Name: %PACKAGE%
+Description: %SHORT%
+Version: %VERSION%
+Requires: 
+Conflicts: 
+Libs: -L${libdir} -l%PACKAGE%
+Cflags: -I${includedir}
diff --git a/model/c-lib/control b/model/c-lib/control
new file mode 100644
index 0000000..9d74db2
--- /dev/null
+++ b/model/c-lib/control
@@ -0,0 +1,33 @@
+Source: %PACKAGE%
+Section: unknown
+Priority: extra
+Maintainer: %DEBNAME% <%DEBEMAIL%>
+Build-Depends: debhelper (>= 7), dh-buildinfo, autotools-dev
+Standards-Version: 3.8.0
+Homepage: URL://HOMEPAGE
+
+Package: lib%PACKAGE%-dev
+Section: libdevel
+Architecture: any
+Depends: lib%PACKAGE%%MAJOR% (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
+Description: %SHORT% - devel
+ %LONG%
+ .
+ This package contains the development libraries and headers.
+
+Package: lib%PACKAGE%%MAJOR%
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: %PACKAGE%-dbg (= ${binary:Version}), lib%PACKAGE%-dev (= 
${binary:Version})
+Description: %SHORT%
+ %LONG%
+
+Package: lib%PACKAGE%%MAJOR%-dbg
+Section: libs
+Architecture: any
+Depends: lib%PACKAGE%%MAJOR% (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
+Description: %SHORT% - debug
+ %LONG%
+ .
+ This package contains the debugging symbols.
diff --git a/model/c-lib/libPACKAGE-dev.install 
b/model/c-lib/libPACKAGE-dev.install
new file mode 100644
index 0000000..603aeab
--- /dev/null
+++ b/model/c-lib/libPACKAGE-dev.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/include/* usr/include/
+debian/tmp/usr/lib/lib*.a usr/lib/
+debian/tmp/usr/lib/lib*.so usr/lib/
+debian/%PACKAGE%.pc usr/lib/pkgconfig/
diff --git a/type/autotools-lib/libPACKAGEMAJOR.install 
b/model/c-lib/libPACKAGEMAJOR.install
similarity index 100%
rename from type/autotools-lib/libPACKAGEMAJOR.install
rename to model/c-lib/libPACKAGEMAJOR.install
diff --git a/type/makefile/rules b/model/c-lib/rules
similarity index 87%
rename from type/makefile/rules
rename to model/c-lib/rules
index a26fc60..1f55cfc 100755
--- a/type/makefile/rules
+++ b/model/c-lib/rules
@@ -12,16 +12,16 @@ config-stamp:
 build: build-stamp
 build-stamp: config
        dh_testdir
-       $(MAKE) \
+       $(MAKE) -f debian/Makefile \
                CFLAGS="$(CFLAGS)" \
                LDFLAGS="-Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined"
        touch $@
 
-clean: 
+clean: config
        dh_testdir
        dh_testroot
        rm -f build-stamp config-stamp
-       [ ! -f Makefile ] || $(MAKE) clean
+       $(MAKE) -f debian/Makefile clean
        [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
        dh_clean 
 
@@ -30,7 +30,7 @@ install: build
        dh_testroot
        dh_prep
        dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/PACKAGE install
+       $(MAKE) -f debian/Makefile DESTDIR=$(CURDIR)/debian/tmp install
 
 # Build architecture-independent files here.
 binary-indep: install
@@ -56,7 +56,7 @@ binary-arch: install
        dh_installman
 #      dh_desktop
        dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
+       dh_strip --dbg-package=lib%PACKAGE%%MAJOR%-dbg
        dh_compress
        dh_fixperms
 #      dh_perl
diff --git a/model/cmake/control b/model/cmake/control
index 028114d..d6acd00 100644
--- a/model/cmake/control
+++ b/model/cmake/control
@@ -1,22 +1,22 @@
-Source: PACKAGE
+Source: %PACKAGE%
 Section: unknown
 Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
+Maintainer: %DEBNAME% <%DEBEMAIL%>
 Build-Depends: debhelper (>= 7), cmake, dh-buildinfo
 Standards-Version: 3.8.0
 Homepage: URL://HOMEPAGE
 
-Package: PACKAGE
+Package: %PACKAGE%
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
+Suggests: %PACKAGE%-dbg (= ${binary:Version})
+Description: %SHORT%
+ %LONG%
 
-Package: PACKAGE-dbg
+Package: %PACKAGE%-dbg
 Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
+Depends: %PACKAGE% (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: %SHORT% - debug
+ %LONG%
  .
  This package contains the debugging symbols.
diff --git a/model/cmake/rules b/model/cmake/rules
old mode 100755
new mode 100644
index a2f2cfc..0288a15
--- a/model/cmake/rules
+++ b/model/cmake/rules
@@ -18,7 +18,7 @@ config-stamp:
                -DBUILD_STATIC:BOOL=ON \
                -DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,-z,defs -Wl,--as-needed 
-Wl,--no-undefined" \
                -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,-z,defs -Wl,--as-needed 
-Wl,--no-undefined" \
-               -DCMAKE_INSTALL_RPATH:STRING="/usr/lib/games/PACKAGE"
+               -DCMAKE_INSTALL_RPATH:STRING="/usr/lib/games/%PACKAGE%"
        touch $@
 
 build: build-stamp
@@ -65,7 +65,7 @@ binary-arch: install
        dh_installman
 #      dh_desktop
        dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
+       dh_strip --dbg-package=%PACKAGE%-dbg
        dh_compress
        dh_fixperms
 #      dh_perl
diff --git a/model/makefile/control b/model/makefile/control
index 6720999..df1e3b8 100644
--- a/model/makefile/control
+++ b/model/makefile/control
@@ -1,22 +1,22 @@
-Source: PACKAGE
+Source: %PACKAGE%
 Section: unknown
 Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
+Maintainer: %DEBNAME% <%DEBEMAIL%>
 Build-Depends: debhelper (>= 7), dh-buildinfo
 Standards-Version: 3.8.0
 Homepage: URL://HOMEPAGE
 
-Package: PACKAGE
+Package: %PACKAGE%
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
+Suggests: %PACKAGE%-dbg (= ${binary:Version})
+Description: %SHORT%
+ %LONG%
 
-Package: PACKAGE-dbg
+Package: %PACKAGE%-dbg
 Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
+Depends: %PACKAGE% (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: %SHORT% - debug
+ %LONG%
  .
  This package contains the debugging symbols.
diff --git a/model/makefile/rules b/model/makefile/rules
old mode 100755
new mode 100644
index a26fc60..964735f
--- a/model/makefile/rules
+++ b/model/makefile/rules
@@ -30,7 +30,7 @@ install: build
        dh_testroot
        dh_prep
        dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/PACKAGE install
+       $(MAKE) DESTDIR=$(CURDIR)/debian/%PACKAGE% install
 
 # Build architecture-independent files here.
 binary-indep: install
@@ -56,7 +56,7 @@ binary-arch: install
        dh_installman
 #      dh_desktop
        dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
+       dh_strip --dbg-package=%PACKAGE%-dbg
        dh_compress
        dh_fixperms
 #      dh_perl
diff --git a/model/pymodule/control b/model/pymodule/control
index 2df71fd..9237c6c 100644
--- a/model/pymodule/control
+++ b/model/pymodule/control
@@ -1,25 +1,25 @@
-Source: PACKAGE
+Source: %PACKAGE%
 Section: unknown
 Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
+Maintainer: %DEBNAME% <%DEBEMAIL%>
 Build-Depends: debhelper (>= 7), dh-buildinfo, \
  python-all-dev, python-support, python-setuptools
 Standards-Version: 3.8.0
 Homepage: URL://HOMEPAGE
 
-Package: python-PACKAGE
+Package: python-%PACKAGE%
 Architecture: any
 Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
 Provides: ${python:Provides}
-Suggests: python-PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
+Suggests: python-%PACKAGE%-dbg (= ${binary:Version})
+Description: %SHORT%
+ %LONG%
 
 
-Package: python-PACKAGE-dbg
+Package: python-%PACKAGE%-dbg
 Architecture: any
-Depends: python-PACKAGE (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
+Depends: python-%PACKAGE% (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
+Description: %SHORT% - debug
+ %LONG%
  .
  This package contains the debugging symbols.
diff --git a/model/pymodule/rules b/model/pymodule/rules
old mode 100755
new mode 100644
index d196aea..103e1ef
--- a/model/pymodule/rules
+++ b/model/pymodule/rules
@@ -58,7 +58,7 @@ binary-arch: build install
        dh_installman
 #      dh_desktop
        dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
+       dh_strip --dbg-package=%PACKAGE%-dbg
        dh_compress
        dh_fixperms
        dh_pysupport
diff --git a/model/python/PACKAGE.install b/model/python/PACKAGE.install
index e2f6deb..b8fde4e 100644
--- a/model/python/PACKAGE.install
+++ b/model/python/PACKAGE.install
@@ -1 +1 @@
-*.py usr/share/PACKAGE/
+*.py usr/share/%PACKAGE%/
diff --git a/model/python/control b/model/python/control
index 482fc75..73a1177 100644
--- a/model/python/control
+++ b/model/python/control
@@ -1,13 +1,13 @@
-Source: PACKAGE
+Source: %PACKAGE%
 Section: unknown
 Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
+Maintainer: %DEBNAME% <%DEBEMAIL%>
 Build-Depends: debhelper (>= 7), dh-buildinfo
 Standards-Version: 3.8.0
 Homepage: URL://HOMEPAGE
 
-Package: PACKAGE
+Package: %PACKAGE%
 Architecture: all
 Depends: python, ${misc:Depends}
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
+Description: %SHORT%
+ %LONG%
diff --git a/model/python/rules b/model/python/rules
old mode 100755
new mode 100644
index aca0ca2..98f325d
--- a/model/python/rules
+++ b/model/python/rules
@@ -27,8 +27,8 @@ install: build
        dh_testroot
        dh_prep
        dh_installdirs
-       mkdir -p $(CURDIR)/debian/PACKAGE/usr/bin/
-       install -m 755 debian/run.sh $(CURDIR)/debian/PACKAGE/usr/bin/PACKAGE
+       mkdir -p $(CURDIR)/debian/%PACKAGE%/usr/bin/
+       install -m 755 debian/run.sh 
$(CURDIR)/debian/%PACKAGE%/usr/bin/%PACKAGE%
 
 # Build architecture-independent files here.
 binary-indep: install
diff --git a/model/python/run.sh b/model/python/run.sh
index 17695db..67bd433 100644
--- a/model/python/run.sh
+++ b/model/python/run.sh
@@ -1,4 +1,4 @@
 #!/bin/sh --
 
-cd /usr/share/PACKAGE/
-python PACKAGE.py "$@"
+cd /usr/share/%PACKAGE%/
+python %PACKAGE%.py "$@"
diff --git a/model/scons/control b/model/scons/control
index c7b4bf7..740a358 100644
--- a/model/scons/control
+++ b/model/scons/control
@@ -1,22 +1,22 @@
-Source: PACKAGE
+Source: %PACKAGE%
 Section: unknown
 Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
+Maintainer: %DEBNAME% <%DEBEMAIL%>
 Build-Depends: debhelper (>= 7), scons, dh-buildinfo
 Standards-Version: 3.8.0
 Homepage: URL://HOMEPAGE
 
-Package: PACKAGE
+Package: %PACKAGE%
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
+Suggests: %PACKAGE%-dbg (= ${binary:Version})
+Description: %SHORT%
+ %LONG%
 
-Package: PACKAGE-dbg
+Package: %PACKAGE%-dbg
 Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
+Depends: %PACKAGE% (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: %SHORT% - debug
+ %LONG%
  .
  This package contains the debugging symbols.
diff --git a/model/scons/rules b/model/scons/rules
old mode 100755
new mode 100644
index 3ec7c76..9c5140c
--- a/model/scons/rules
+++ b/model/scons/rules
@@ -15,7 +15,7 @@ build-stamp: config
        dh_testdir
        scons \
                prefix=/usr \
-               resources_dir=/usr/share/PACKAGE \
+               resources_dir=/usr/share/%PACKAGE% \
                lib_dir="$(CURDIR)"
        touch $@
 
@@ -59,7 +59,7 @@ binary-arch: install
        dh_installman
 #      dh_desktop
        dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
+       dh_strip --dbg-package=%PACKAGE%-dbg
        dh_compress
        dh_fixperms
 #      dh_perl
diff --git a/tests/test-c-lib-01.tgz b/tests/test-c-lib-01.tgz
new file mode 100644
index 0000000..6a95e83
Binary files /dev/null and b/tests/test-c-lib-01.tgz differ
diff --git a/type/autotools-bin/control b/type/autotools-bin/control
deleted file mode 100644
index 83bc723..0000000
--- a/type/autotools-bin/control
+++ /dev/null
@@ -1,22 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), dh-buildinfo, autotools-dev
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: PACKAGE
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-Package: PACKAGE-dbg
-Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/autotools-bin/rules b/type/autotools-bin/rules
deleted file mode 100755
index ab451eb..0000000
--- a/type/autotools-bin/rules
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
-CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-else
-CROSS= --build $(DEB_BUILD_GNU_TYPE)
-endif
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-       ./configure $(CROSS) \
-               --prefix=/usr \
-               --mandir=\$${prefix}/share/man \
-               --infodir=\$${prefix}/share/info \
-               CFLAGS="$(CFLAGS)" \
-               LDFLAGS="-Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined"
-       touch $@
-
-build: build-stamp
-build-stamp: config-stamp
-       dh_testdir
-       $(MAKE)
-       touch $@
-
-clean: 
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp config-stamp
-       [ ! -f Makefile ] || $(MAKE) distclean
-       rm -f config.sub config.guess
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep  
-       dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/PACKAGE install
-
-# Build architecture-independent files here.
-binary-indep: install
-
-# Build architecture-dependent files here.
-binary-arch: install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install 
diff --git a/type/autotools-lib/control b/type/autotools-lib/control
deleted file mode 100644
index 1a7266f..0000000
--- a/type/autotools-lib/control
+++ /dev/null
@@ -1,33 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), dh-buildinfo, autotools-dev
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: libPACKAGE-dev
-Section: libdevel
-Architecture: any
-Depends: libPACKAGEMAJOR (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
-Description: SHORT DESCRIPTION - devel
- LONG DESCRIPTION
- .
- This package contains the development libraries and headers.
-
-Package: libPACKAGEMAJOR
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version}), libPACKAGE-dev (= 
${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-Package: libPACKAGEMAJOR-dbg
-Section: libs
-Architecture: any
-Depends: libPACKAGEMAJOR (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/autotools-lib/libPACKAGE-dev.install 
b/type/autotools-lib/libPACKAGE-dev.install
deleted file mode 100644
index 8c1a58e..0000000
--- a/type/autotools-lib/libPACKAGE-dev.install
+++ /dev/null
@@ -1,6 +0,0 @@
-debian/tmp/usr/include/* usr/include/
-debian/tmp/usr/lib/lib*.a usr/lib/
-debian/tmp/usr/lib/lib*.so usr/lib/
-debian/tmp/usr/lib/lib*.la usr/lib/
-debian/tmp/usr/lib/pkgconfig/* usr/lib/pkgconfig/
-debian/tmp/usr/share/pkgconfig/* usr/share/pkgconfig/
diff --git a/type/autotools-lib/rules b/type/autotools-lib/rules
deleted file mode 100755
index 84dc7d7..0000000
--- a/type/autotools-lib/rules
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# shared library versions, option 1
-version=2.0.5
-major=2
-# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
-#version=`ls src/.libs/lib*.so.* | \
-# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
-#major=`ls src/.libs/lib*.so.* | \
-# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
-CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-else
-CROSS= --build $(DEB_BUILD_GNU_TYPE)
-endif
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-       ./configure $(CROSS) \
-               --prefix=/usr \
-               --mandir=\$${prefix}/share/man \
-               --infodir=\$${prefix}/share/info \
-               CFLAGS="$(CFLAGS)" \
-               LDFLAGS="-Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined"
-       touch $@
-
-build: build-stamp
-build-stamp: config
-       dh_testdir
-       $(MAKE)
-       touch $@
-
-clean: config
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp config-stamp
-       [ ! -f Makefile ] || $(MAKE) distclean
-       rm -f config.sub config.guess
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-# Build architecture-independent files here.
-binary-indep: install
-
-# Build architecture-dependent files here.
-binary-arch: install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-       dh_strip --dbg-package=libPACKAGEMAJOR-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install 
diff --git a/type/autotools/control b/type/autotools/control
deleted file mode 100644
index 83bc723..0000000
--- a/type/autotools/control
+++ /dev/null
@@ -1,22 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), dh-buildinfo, autotools-dev
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: PACKAGE
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-Package: PACKAGE-dbg
-Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/autotools/rules b/type/autotools/rules
deleted file mode 100755
index 16ac0aa..0000000
--- a/type/autotools/rules
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
-CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-else
-CROSS= --build $(DEB_BUILD_GNU_TYPE)
-endif
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-       ./configure $(CROSS) \
-               --prefix=/usr \
-               --mandir=\$${prefix}/share/man \
-               --infodir=\$${prefix}/share/info \
-               CFLAGS="$(CFLAGS)" \
-               LDFLAGS="-Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined"
-       touch $@
-
-build: build-stamp
-build-stamp: config
-       dh_testdir
-       $(MAKE)
-       touch $@
-
-clean: config
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp config-stamp
-       [ ! -f Makefile ] || $(MAKE) distclean
-       rm -f config.sub config.guess
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/PACKAGE install
-
-# Build architecture-independent files here.
-binary-indep: install
-
-# Build architecture-dependent files here.
-binary-arch: install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install 
diff --git a/type/cmake/control b/type/cmake/control
deleted file mode 100644
index 028114d..0000000
--- a/type/cmake/control
+++ /dev/null
@@ -1,22 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), cmake, dh-buildinfo
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: PACKAGE
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-Package: PACKAGE-dbg
-Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/cmake/rules b/type/cmake/rules
deleted file mode 100755
index a2f2cfc..0000000
--- a/type/cmake/rules
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-BUILD_TREE=$(CURDIR)/build-tree
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-       # Perform an out-of-tree build to keep a clean source tree
-       mkdir $(BUILD_TREE)
-       cd $(BUILD_TREE); cmake $(CURDIR)/ \
-               --debug-output \
-               -DCMAKE_INSTALL_PREFIX:STRING="/usr" \
-               -DCMAKE_C_FLAGS:STRING="$(CFLAGS)" \
-               -DBUILD_STATIC:BOOL=ON \
-               -DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,-z,defs -Wl,--as-needed 
-Wl,--no-undefined" \
-               -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,-z,defs -Wl,--as-needed 
-Wl,--no-undefined" \
-               -DCMAKE_INSTALL_RPATH:STRING="/usr/lib/games/PACKAGE"
-       touch $@
-
-build: build-stamp
-build-stamp: config
-       dh_testdir
-       cd $(BUILD_TREE); $(MAKE)
-       touch $@
-
-clean: 
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp config-stamp
-       rm -fr $(BUILD_TREE)
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
-
-# Build architecture-independent files here.
-binary-indep: install
-
-# Build architecture-dependent files here.
-binary-arch: install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install 
diff --git a/type/makefile-bin/control b/type/makefile-bin/control
deleted file mode 100644
index 6720999..0000000
--- a/type/makefile-bin/control
+++ /dev/null
@@ -1,22 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), dh-buildinfo
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: PACKAGE
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-Package: PACKAGE-dbg
-Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/makefile-bin/rules b/type/makefile-bin/rules
deleted file mode 100755
index cdc3503..0000000
--- a/type/makefile-bin/rules
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-       touch $@
-
-build: build-stamp
-build-stamp: config-stamp
-       dh_testdir
-       $(MAKE) \
-               CFLAGS="$(CFLAGS)" \
-               LDFLAGS="-Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined"
-       touch $@
-
-clean: 
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp config-stamp
-       [ ! -f Makefile ] || $(MAKE) clean
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep  
-       dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/PACKAGE install
-
-# Build architecture-independent files here.
-binary-indep: install
-
-# Build architecture-dependent files here.
-binary-arch: install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install 
diff --git a/type/makefile/control b/type/makefile/control
deleted file mode 100644
index 6720999..0000000
--- a/type/makefile/control
+++ /dev/null
@@ -1,22 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), dh-buildinfo
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: PACKAGE
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-Package: PACKAGE-dbg
-Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/pymodule/control b/type/pymodule/control
deleted file mode 100644
index 2df71fd..0000000
--- a/type/pymodule/control
+++ /dev/null
@@ -1,25 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), dh-buildinfo, \
- python-all-dev, python-support, python-setuptools
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: python-PACKAGE
-Architecture: any
-Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
-Provides: ${python:Provides}
-Suggests: python-PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-
-Package: python-PACKAGE-dbg
-Architecture: any
-Depends: python-PACKAGE (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/pymodule/rules b/type/pymodule/rules
deleted file mode 100755
index d196aea..0000000
--- a/type/pymodule/rules
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/usr/bin/make -f
-
-include /usr/share/quilt/quilt.make
-
-PYVERS=$(shell pyversions -vs)
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-       touch $@
-
-build: $(PYVERS:%=build-python%)
-
-build-python%: config-stamp
-       dh_testdir
-       python$* setup.py build
-       touch $@
-
-clean: unpatch
-       dh_testdir
-       dh_testroot
-       rm -f config-stamp build-python?.* install-python?.*
-       rm -rf build
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build $(PYVERS:%=install-python%)
-
-install-python%:
-       dh_testdir
-       dh_testroot
-       python$* setup.py install \
-               --no-compile \
-               --root=$(CURDIR)/debian/python-rabbyt \
-               --single-version-externally-managed;
-       touch $@
-
-binary-indep: build install
-
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
-       dh_compress
-       dh_fixperms
-       dh_pysupport
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install
diff --git a/type/python/PACKAGE.install b/type/python/PACKAGE.install
deleted file mode 100644
index e2f6deb..0000000
--- a/type/python/PACKAGE.install
+++ /dev/null
@@ -1 +0,0 @@
-*.py usr/share/PACKAGE/
diff --git a/type/python/control b/type/python/control
deleted file mode 100644
index 482fc75..0000000
--- a/type/python/control
+++ /dev/null
@@ -1,13 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), dh-buildinfo
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: PACKAGE
-Architecture: all
-Depends: python, ${misc:Depends}
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
diff --git a/type/python/rules b/type/python/rules
deleted file mode 100755
index aca0ca2..0000000
--- a/type/python/rules
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-       touch $@
-
-build: build-stamp
-build-stamp: config
-       dh_testdir
-       touch $@
-
-clean: 
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp config-stamp
-       [ ! -f Makefile ] || $(MAKE) clean
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
-       mkdir -p $(CURDIR)/debian/PACKAGE/usr/bin/
-       install -m 755 debian/run.sh $(CURDIR)/debian/PACKAGE/usr/bin/PACKAGE
-
-# Build architecture-independent files here.
-binary-indep: install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-#      dh_strip
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-# Build architecture-dependent files here.
-binary-arch: install
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install 
diff --git a/type/python/run.sh b/type/python/run.sh
deleted file mode 100644
index 17695db..0000000
--- a/type/python/run.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh --
-
-cd /usr/share/PACKAGE/
-python PACKAGE.py "$@"
diff --git a/type/scons/control b/type/scons/control
deleted file mode 100644
index c7b4bf7..0000000
--- a/type/scons/control
+++ /dev/null
@@ -1,22 +0,0 @@
-Source: PACKAGE
-Section: unknown
-Priority: extra
-Maintainer: DEVELOPER NAME <develo...@email>
-Build-Depends: debhelper (>= 7), scons, dh-buildinfo
-Standards-Version: 3.8.0
-Homepage: URL://HOMEPAGE
-
-Package: PACKAGE
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: PACKAGE-dbg (= ${binary:Version})
-Description: SHORT DESCRIPTION
- LONG DESCRIPTION
-
-Package: PACKAGE-dbg
-Architecture: any
-Depends: PACKAGE (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: SHORT DESCRIPTION - debug
- LONG DESCRIPTION
- .
- This package contains the debugging symbols.
diff --git a/type/scons/options.cache b/type/scons/options.cache
deleted file mode 100644
index b3b991e..0000000
--- a/type/scons/options.cache
+++ /dev/null
@@ -1,4 +0,0 @@
-CC = 'gcc'
-CXX = 'g++'
-CCFLAGS = ' :CFLAGS: '
-CXXFLAGS = ' :CFLAGS: '
diff --git a/type/scons/rules b/type/scons/rules
deleted file mode 100755
index 3ec7c76..0000000
--- a/type/scons/rules
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-config: config-stamp
-config-stamp: 
-       dh_testdir
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
-       sed -e 's/:CFLAGS:/$(CFLAGS)/' < debian/options.cache > options.cache
-       touch $@
-
-build: build-stamp
-build-stamp: config
-       dh_testdir
-       scons \
-               prefix=/usr \
-               resources_dir=/usr/share/PACKAGE \
-               lib_dir="$(CURDIR)"
-       touch $@
-
-clean: 
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp config-stamp
-       -scons -c
-       rm -f config.log options.cache
-       rm -rf .sconf_temp build
-       [ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make 
unpatch
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
-
-# Build architecture-independent files here.
-binary-indep: install
-
-# Build architecture-dependent files here.
-binary-arch: install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_desktop
-       dh_link
-       dh_strip --dbg-package=PACKAGE-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
-       test -e /usr/bin/dh_buildinfo && dh_buildinfo
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: config build clean binary-indep binary-arch binary install 

-- 
templates for different package types

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to