From 48ca55c30f74ee62e71fbbd074cb4ff7768db631 Mon Sep 17 00:00:00 2001 From: Alexandre Erwin Ittner Date: Wed, 7 Feb 2007 22:21:41 +0000 Subject: [PATCH] Control directory for Debian packages. git-svn-id: file:///var/svn/lua-iconv/trunk@32 9538949d-8f27-0410-946f-ce01ef448559 --- debian/changelog | 6 ++++ debian/control | 15 +++++++++ debian/copyright | 23 ++++++++++++++ debian/rules | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 125 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..fcdd039 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +lua-iconv (3r3-1) unstable; urgency=low + + * Initial release Closes: #nnnn (nnnn is the bug number of your ITP) + + -- Alexandre Erwin Ittner Wed, 3 Feb 2007 00:20:09 -0200 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e6f666b --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: lua-iconv +Priority: optional +Maintainer: Alexandre Erwin Ittner +Build-Depends: debhelper (>= 4.0.0), liblua5.1-dev +Standards-Version: 3.6.1 +Section: interpreters + +Package: lua-iconv +Architecture: any +Depends: ${shlibs:Depends} +Recommends: lua5.1 +Description: iconv bindings for the Lua Programming Language + Lua-iconv is a Lua binding to the POSIX 'iconv' library, that converts a + sequence of characters from one codeset into a sequence of corresponding + characters in another codeset. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4300cb9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +lua-iconv (c) 2005-2007 Alexandre Erwin Ittner + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +If you use this package in a product, an acknowledgment in the product +documentation would be greatly appreciated (but it is not required). diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..17c88f6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +## This is my first Debian package. Please, be patient ;) + + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +LUAPKG=lua5.1 +INSTALL_PATH=`pkg-config $(LUAPKG) --variable=INSTALL_CMOD` + +CFLAGS = -Wall -g + +build: build-stamp +build-stamp: + dh_testdir + +# Well, this does it all. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f iconv.so + rm -f build-stamp configure-stamp + +# Toplevel clean does it all + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + mkdir -p debian/lua-iconv/usr/share/doc/lua-iconv + mkdir -p debian/lua-iconvs/$(INSTALL_PATH) + + cp iconv.so debian/lua-iconv/$(INSTALL_PATH) + cp README COPYING test_iconv.lua debian/lua-iconv/usr/share/doc/lua-iconv/ + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a +# dh_installdebconf -a + dh_installdocs -a +# dh_installexamples -a +# dh_installmenu -a +# dh_installlogrotate -a +# dh_installemacsen -a +# dh_installpam -a +# dh_installmime -a +# dh_installinit -a +# dh_installcron -a +# dh_installman -a +# dh_installinfo -a +# dh_undocumented -a + dh_installchangelogs -a + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a -V + dh_installdeb -a +# dh_perl -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure