From 4a00cbae731f4cc762f7e312037f736fc5a365d1 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Wed, 6 Jul 2016 02:04:44 +0900
Subject: [PATCH] Add package files for Ubuntu/Debian

---
 pkg/ubuntu/build.sh              |  6 ++++++
 pkg/ubuntu/debian/changelog      |  5 +++++
 pkg/ubuntu/debian/compat         |  1 +
 pkg/ubuntu/debian/control        | 12 ++++++++++++
 pkg/ubuntu/debian/copyright      | 10 ++++++++++
 pkg/ubuntu/debian/rules          | 11 +++++++++++
 pkg/ubuntu/debian/xdgurl.install |  2 ++
 7 files changed, 47 insertions(+)
 create mode 100644 pkg/ubuntu/build.sh
 create mode 100644 pkg/ubuntu/debian/changelog
 create mode 100644 pkg/ubuntu/debian/compat
 create mode 100644 pkg/ubuntu/debian/control
 create mode 100644 pkg/ubuntu/debian/copyright
 create mode 100755 pkg/ubuntu/debian/rules
 create mode 100644 pkg/ubuntu/debian/xdgurl.install

diff --git a/pkg/ubuntu/build.sh b/pkg/ubuntu/build.sh
new file mode 100644
index 0000000..211236a
--- /dev/null
+++ b/pkg/ubuntu/build.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd `dirname $0`
+
+debuild -uc -us -b
+#fakeroot debian/rules clean
diff --git a/pkg/ubuntu/debian/changelog b/pkg/ubuntu/debian/changelog
new file mode 100644
index 0000000..2f3f470
--- /dev/null
+++ b/pkg/ubuntu/debian/changelog
@@ -0,0 +1,5 @@
+xdgurl (1.0.0-0ubuntu1) xenial; urgency=low
+
+  * Initial release
+
+ -- Akira Ohgaki <akiraohgaki@gmail.com>  Tue, 05 Jul 2016 15:53:09 +0000
diff --git a/pkg/ubuntu/debian/compat b/pkg/ubuntu/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/pkg/ubuntu/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/pkg/ubuntu/debian/control b/pkg/ubuntu/debian/control
new file mode 100644
index 0000000..7337968
--- /dev/null
+++ b/pkg/ubuntu/debian/control
@@ -0,0 +1,12 @@
+Source: xdgurl
+Section: web
+Priority: optional
+Maintainer: Akira Ohgaki <akiraohgaki@gmail.com>
+Build-Depends: build-essential (>= 11), devscripts (>= 2.14), debhelper (>= 9), fakeroot (>= 1.20)
+Standards-Version: 3.9.4
+
+Package: xdgurl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.7.0), python-tk (>= 2.7.0)
+Description: xdgurl
+ An install helper program for desktop stuff.
diff --git a/pkg/ubuntu/debian/copyright b/pkg/ubuntu/debian/copyright
new file mode 100644
index 0000000..5e4c273
--- /dev/null
+++ b/pkg/ubuntu/debian/copyright
@@ -0,0 +1,10 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: xdgurl
+Upstream-Contact: Akira Ohgaki <akiraohgaki@gmail.com>
+Source: https://github.com/xdgurl/xdgurl
+
+Files: *
+Copyright: 2016, Akira Ohgaki
+License: GPL-3+
+ On Debian systems, the full text of the GNU General Public License version 3
+ can be found in the `/usr/share/common-licenses/GPL-3' file.
diff --git a/pkg/ubuntu/debian/rules b/pkg/ubuntu/debian/rules
new file mode 100755
index 0000000..b17aa69
--- /dev/null
+++ b/pkg/ubuntu/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_install:
+	install -D -m 755 ../../src/xdgurl.py usr/bin/xdgurl
+	install -D -m 644 ../../src/xdgurl.desktop usr/share/applications/xdgurl.desktop
+
+override_dh_shlibdeps:
+	# ignore
diff --git a/pkg/ubuntu/debian/xdgurl.install b/pkg/ubuntu/debian/xdgurl.install
new file mode 100644
index 0000000..dcca62e
--- /dev/null
+++ b/pkg/ubuntu/debian/xdgurl.install
@@ -0,0 +1,2 @@
+usr/bin/xdgurl
+usr/share/applications/xdgurl.desktop
-- 
GitLab