[SCM] templates for different package types branch, master, updated. 8244bac5ab9a0dd4f9eec3f720b1956065f9abf3
Miriam Ruiz
miriam at debian.org
Sat Feb 28 04:29:48 UTC 2009
The following commit has been merged in the master branch:
commit 8244bac5ab9a0dd4f9eec3f720b1956065f9abf3
Author: Miriam Ruiz <miriam at debian.org>
Date: Sat Feb 28 05:26:24 2009 +0100
Added cmake-lib package model
Make parameters in create.sh configurable via shell variables
diff --git a/create.sh b/create.sh
index 9f43b9d..75ee752 100755
--- a/create.sh
+++ b/create.sh
@@ -25,11 +25,26 @@ if [ ! "$(basename $(dirname ${DEST_DIR}))" = "debian" ]; then
mkdir -p "${DEST_DIR}"
fi
-PACKAGE_MAJOR="0"
-PACKAGE_MINOR="0"
-PACKAGE_VERSION="0.0"
-DEBIAN_RELEASE="0"
-SHORT_DESCRIPTION="description"
+while test -z "${PACKAGE_MAJOR}"; do
+ PACKAGE_MAJOR="0"
+done
+
+while test -z "${PACKAGE_MINOR}"; do
+ PACKAGE_MINOR="0"
+done
+
+while test -z "${PACKAGE_VERSION}"; do
+ PACKAGE_VERSION="0.0"
+done
+
+while test -z "${DEBIAN_RELEASE}"; do
+ DEBIAN_RELEASE="0"
+done
+
+while test -z "${SHORT_DESCRIPTION}"; do
+ SHORT_DESCRIPTION="description"
+done
+
LONG_DESCRIPTION="long description"
if [ -z "${DEBEMAIL}" ]; then
diff --git a/model/c-lib/control b/model/cmake-lib/control
similarity index 93%
copy from model/c-lib/control
copy to model/cmake-lib/control
index 9d74db2..e90edca 100644
--- a/model/c-lib/control
+++ b/model/cmake-lib/control
@@ -2,7 +2,7 @@ Source: %PACKAGE%
Section: unknown
Priority: extra
Maintainer: %DEBNAME% <%DEBEMAIL%>
-Build-Depends: debhelper (>= 7), dh-buildinfo, autotools-dev
+Build-Depends: debhelper (>= 7), cmake, dh-buildinfo
Standards-Version: 3.8.0
Homepage: URL://HOMEPAGE
diff --git a/model/cmake-lib/libPACKAGE-dev.install b/model/cmake-lib/libPACKAGE-dev.install
new file mode 100644
index 0000000..8e128bc
--- /dev/null
+++ b/model/cmake-lib/libPACKAGE-dev.install
@@ -0,0 +1,6 @@
+build-tree/include/* usr/include/%PACKAGE%/
+build-tree/lib/lib*.a usr/lib/
+build-tree/lib/lib*.so usr/lib/
+#build-tree/lib/lib*.la usr/lib/
+#build-tree/lib/pkgconfig/* usr/lib/pkgconfig/
+#build-tree/share/pkgconfig/* usr/share/pkgconfig/
diff --git a/model/cmake-lib/libPACKAGEMAJOR.install b/model/cmake-lib/libPACKAGEMAJOR.install
new file mode 100644
index 0000000..36cca8f
--- /dev/null
+++ b/model/cmake-lib/libPACKAGEMAJOR.install
@@ -0,0 +1 @@
+build-tree/lib/lib*.so.* usr/lib/
diff --git a/model/cmake/rules b/model/cmake-lib/rules
similarity index 97%
copy from model/cmake/rules
copy to model/cmake-lib/rules
index d64c7ad..28e83d5 100644
--- a/model/cmake/rules
+++ b/model/cmake-lib/rules
@@ -66,7 +66,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
--
templates for different package types
More information about the Pkg-games-commits
mailing list