summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/control19
-rw-r--r--debian/copyright10
-rw-r--r--debian/getxbook.desktop9
-rw-r--r--debian/menu4
-rw-r--r--debian/postinst3
-rw-r--r--debian/postrm3
-rwxr-xr-xdebian/rules39
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch2
10 files changed, 95 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d3f2ede
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+getxbook (1.0-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Nick White <debian@njw.me.uk> Sun, 09 Sep 2012 10:38:58 +0100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e6c988f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: getxbook
+Section: net
+Priority: optional
+Maintainer: Nick White <debian@njw.me.uk>
+Build-Depends:
+Standards-Version: 3.9.1
+Homepage: http://njw.me.uk/software/getxbook
+
+Package: getxbook
+Architecture: any
+Depends: ${shlibs:Depends}, tcl, tk
+Description: A collection of tools to download books from websites.
+ getxbook is a collection of tools to download books from
+ Google Books' "Book Preview," Amazon's "Look Inside the
+ Book" and Barnes & Noble's "Book Viewer."
+ .
+ Each tool is written in around 200 lines of portable C code,
+ with no dependencies beyond libc and network sockets. There
+ is an optional graphical interface, using Tcl/Tk.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9e268aa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,10 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: http://njw.me.uk/software/getxbook
+
+Files: *
+Copyright: 2011-2012 Nick White <njw.me.uk>
+License: ISC
+ Permission to use, copy, modify, and/or distribute this
+ software for any purpose with or without fee is hereby
+ granted, provided that the above copyright notice and this
+ permission notice appear in all copies.
diff --git a/debian/getxbook.desktop b/debian/getxbook.desktop
new file mode 100644
index 0000000..0abac21
--- /dev/null
+++ b/debian/getxbook.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Name=getxbook
+Exec=getxbookgui
+Categories=Network
+Comment=Book downloader
+Icon=getxbook
diff --git a/debian/menu b/debian/menu
new file mode 100644
index 0000000..2f06818
--- /dev/null
+++ b/debian/menu
@@ -0,0 +1,4 @@
+?package(getxbook):needs="X11"\
+ section="Applications/Network/File Transfer"\
+ icon="/usr/share/pixmaps/getxbook.xpm"\
+ title="getxbook" command="/usr/bin/getxbookgui"
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..f5ccda3
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+if test -x /usr/bin/update-menus; then update-menus; fi
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..f5ccda3
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+if test -x /usr/bin/update-menus; then update-menus; fi
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..292ee7f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,39 @@
+#!/usr/bin/make -f
+
+package = getxbook
+DESTDIR = debian/$(package)
+
+build:
+ $(MAKE)
+
+binary: binary-arch binary-indep
+
+binary-arch: build
+ $(MAKE) DESTDIR=$(DESTDIR) PREFIX=/usr install
+ mkdir -p $(DESTDIR)/usr/share/applications
+ cp -f debian/$(package).desktop $(DESTDIR)/usr/share/applications/
+ mkdir -p $(DESTDIR)/usr/share/menu
+ cp -f debian/menu $(DESTDIR)/usr/share/menu/$(package)
+ mkdir -p $(DESTDIR)/usr/share/doc/$(package)
+ cp -f debian/copyright $(DESTDIR)/usr/share/doc/$(package)/
+ cp -f debian/changelog $(DESTDIR)/usr/share/doc/$(package)/changelog.Debian
+ gzip -9 $(DESTDIR)/usr/share/doc/$(package)/changelog.Debian
+ for i in getabook getbnbook getgbook; \
+ do strip $(DESTDIR)/usr/bin/$$i; done
+ for i in getabook getbnbook getgbook getxbook getxbookgui; \
+ do gzip -9 $(DESTDIR)/usr/share/man/man1/$$i.1; done
+ mkdir -p $(DESTDIR)/DEBIAN
+ cp -f debian/postinst debian/postrm $(DESTDIR)/DEBIAN/
+ chmod 755 $(DESTDIR)/DEBIAN/post*
+ dpkg-shlibdeps $(DESTDIR)/usr/bin/getabook \
+ $(DESTDIR)/usr/bin/getbnbook $(DESTDIR)/usr/bin/getgbook
+ dpkg-gencontrol -P$(DESTDIR)
+ dpkg-deb -b $(DESTDIR) ../
+
+binary-indep: build
+
+clean:
+ make clean
+ rm -rf debian/$(package) debian/files debian/substvars
+
+.PHONY: build binary binary-arch binary-indep clean
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0b04ed0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://njw.me.uk/software/getxbook getxbook-(.*)\.tar\.bz2