Skip to content

Commit

Permalink
Added script for generating Debian packages (thanks to the Arora proj…
Browse files Browse the repository at this point in the history
…ect).
  • Loading branch information
riyad committed Dec 1, 2009
1 parent 726f819 commit 43d5eac
Show file tree
Hide file tree
Showing 7 changed files with 163 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builddeb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
ln -sf debian-upstream debian
cat debian/changelog.in | sed "s/##DATE##/`date +%Y%m%d`/g" | sed "s/##RDATE##/`date -R`/g" | sed "s/##DIST##/`lsb_release -cs`/g" > debian/changelog
debuild -b
fakeroot debian/rules clean
rm debian/changelog
rm debian
5 changes: 5 additions & 0 deletions debian-upstream/changelog.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
basket (1.9x~git##DATE##-1~##DIST##1~upstream1) ##DIST##; urgency=low

* Initial release.

-- Riyad Preukschas <[email protected]> ##RDATE##
1 change: 1 addition & 0 deletions debian-upstream/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
18 changes: 18 additions & 0 deletions debian-upstream/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Source: basket
Section: kde
Priority: extra
Maintainer: Riyad Preukschas <[email protected]>
Build-Depends: debhelper (>= 7), cmake, kdelibs5-dev (>= 4.2)
Standards-Version: 3.8.0
Homepage: http://gitorious.org/basket

Package: basket
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: A multi-purpose note-taking application for KDE
This application provides as many baskets (drawers) as you wish; Several kinds
of objects (texts, URLs, images,...) can be drag-n-drop'd into it.
.
Objects can be edited, copied, dragged... So, they can be arranged according
to users' taste. Moreover, Basket allows you to keep all objects you want in
one place, keep data on hand, take notes...
39 changes: 39 additions & 0 deletions debian-upstream/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
This package was debianized by:

Riyad Preukschas <[email protected]> on Tue, 14 Jul 2009 14:27:11 +0200

It was downloaded from:

http://gitorious.org/basket

Upstream Author(s):

Riyad Preukschas <[email protected]>

Copyright:

Copyright (C) 2008-2009 Riyad Preukschas <[email protected]>

License:

This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.

This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.

The Debian packaging is:

Copyright C) 2009, Riyad Preukschas <[email protected]>

and is licensed under the GPL, see above.
2 changes: 2 additions & 0 deletions debian-upstream/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
README
TODO
91 changes: 91 additions & 0 deletions debian-upstream/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1





builddir/Makefile:
dh_testdir
# Add here commands to configure the package.
mkdir -p builddir
cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON


build: build-stamp

build-stamp: builddir/Makefile
dh_testdir

# Add here commands to compile the package.
$(MAKE) -C builddir
#docbook-to-man debian/basket.sgml > basket.1

touch $@

clean:
dh_testdir
dh_testroot
rm -f build-stamp

# Add here commands to clean up after the build process.
rm -rf builddir


dh_clean

install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs

# Add here commands to install the package into debian/basket.
$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/basket install


# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.

# 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_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

0 comments on commit 43d5eac

Please sign in to comment.