Making Deb packages acording to the Debian Lua Policy

git-svn-id: file:///var/svn/lua-iconv/trunk@38 9538949d-8f27-0410-946f-ce01ef448559
This commit is contained in:
Alexandre Erwin Ittner 2007-02-22 02:41:13 +00:00
parent bccfc233fe
commit b5b90d436c
6 changed files with 61 additions and 83 deletions

20
debian/Makefile.Debian.conf vendored Normal file
View File

@ -0,0 +1,20 @@
PKG_NAME=iconv
### things relative to the C library part
CLIB_CFLAGS=
CLIB_LDFLAGS=
CLIB_OBJS= iconv.lo
VERSION_INFO=0:0:0
### things relative to the lua library part
LUA_HEADER=iconv.h
LUA_SOURCES=
LUA_MODNAME=iconv
LUA_TEST=test_iconv.lua
### this part is relative to pkg-config
PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1)
PKG_LIBS_PRIVATE=
PKG_URL=http://lua-iconv.luaforge.net/
PKG_REQUIRES=
PKG_CONFLICTS=

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
lua-iconv (0.r4-1) unstable; urgency=low
* New Debian packages according to the Debian Lua policy.
-- Alexandre Erwin Ittner <aittner@netuno.com.br> Wed, 21 Feb 2007 22:00:00 -0200
lua-iconv (0.r3-1) unstable; urgency=low lua-iconv (0.r3-1) unstable; urgency=low
* First release in .deb format. * First release in .deb format.

21
debian/control vendored
View File

@ -1,15 +1,26 @@
Source: lua-iconv Source: lua-iconv
Section: interpreters
Priority: optional Priority: optional
Maintainer: Alexandre Erwin Ittner <aittner@netuno.com.br> Maintainer: Alexandre Erwin Ittner <aittner@netuno.com.br>
Build-Depends: debhelper (>= 4.0.0), liblua5.1-dev Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), dpatch, lua5.1-policy-dev (>= 6)
Standards-Version: 3.6.1 Standards-Version: 3.7.2
Section: interpreters XS-X-Vcs-svn: svn://svn.debian.org/pkg-lua/packages/lua-iconv
Package: lua-iconv Package: liblua5.1-iconv
Architecture: any Architecture: any
Depends: ${shlibs:Depends} Depends: ${shlibs:Depends}
Recommends: lua5.1
Description: iconv bindings for the Lua Programming Language Description: iconv bindings for the Lua Programming Language
Lua-iconv is POSIX 'iconv' binding for the Lua Programming Language. It Lua-iconv is POSIX 'iconv' binding for the Lua Programming Language. It
converts a sequence of characters from one codeset into a sequence of converts a sequence of characters from one codeset into a sequence of
corresponding characters in another codeset. corresponding characters in another codeset.
Homepage: <http://lua-iconv.luaforge.net/>
Package: liblua5.1-iconv-dev
Architecture: any
Depends: liblua5.1-iconv (= ${Source-Version})
Description: iconv development files for the lua language version 5.1
This package contains the development files of the iconv lua5.1 bindings,
useful to create a statically linked binary (like a C application or a
standalone lua interpreter).
Documentation is also shipped within this package.
Homepage: <http://lua-iconv.luaforge.net/>

1
debian/liblua5.1-iconv-dev.docs vendored Normal file
View File

@ -0,0 +1 @@
doc/us

90
debian/rules vendored
View File

@ -1,81 +1,15 @@
#!/usr/bin/make -f #!/usr/bin/make -f
# -*- makefile -*-
## This is my first Debian package. Please, be patient ;) include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk
DEB_MAKE_BUILD_TARGET := all -f Makefile.Debian
# Uncomment this to turn on verbose mode. DEB_MAKE_TEST_TARGET := test -f Makefile.Debian
#export DH_VERBOSE=1 DEB_MAKE_CLEAN_TARGET := clean -f Makefile.Debian
DEB_MAKE_INSTALL_TARGET := install -f Makefile.Debian DESTDIR=$(DEB_DESTDIR)
# This is the debhelper compatability version to use. DEB_DH_INSTALL_SOURCEDIR := $(DEB_DESTDIR)
export DH_COMPAT=4 pre-build::
lua5.1-policy-apply
LUAPKG=lua5.1 clean::
INSTALL_PATH=`pkg-config $(LUAPKG) --variable=INSTALL_CMOD` lua5.1-policy-apply --reverse
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-iconv/$(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

5
debian/watch vendored Normal file
View File

@ -0,0 +1,5 @@
# test this watch file using:
# uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-iconv
#
version=3
http://luaforge.net/frs/download.php/\d+/lua-iconv-([\d\.]*).tar.gz