From a8b840a5b6760f021e0b3041d7fb223bd80fb932 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 12 Nov 2012 19:11:46 +0200 Subject: [PATCH] Packaged for Debian and Ubuntu Change-Id: I5f99117eb0bd506dd1d83d691a0b0e9c5f08c944 Signed-off-by: Ed Bartosh --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 12 ++++++++++++ debian/rules | 5 +++++ packaging/Makefile | 7 ++++++- packaging/lthor.dsc | 10 ++++++++++ 6 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/rules create mode 100644 packaging/lthor.dsc diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4ab29a4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +lthor (1.0) unstable; urgency=low + + * Initial upload + + -- Ed Bartosh Mon, 12 Nov 2012 19:08:56 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7813681 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 \ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c1c09bc --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: lthor +Section: net +Priority: extra +Maintainer: Ed Bartosh +Build-Depends: debhelper (>= 5), libc6-dev, pkg-config, cmake, libarchive-dev +Standards-Version: 0.0.1 + +Package: lthor +Architecture: any +Depends: ${shlibs:Depends} +Description: Flashing tool for Tizen lunchbox + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..abde6ef --- /dev/null +++ b/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh $@ + diff --git a/packaging/Makefile b/packaging/Makefile index ae0311f..4ffb78c 100644 --- a/packaging/Makefile +++ b/packaging/Makefile @@ -8,7 +8,12 @@ tarball: @cd .. && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \ | gzip > packaging/$(TARBALL) +dsc: tarball + $(eval MD5=$(shell md5sum $(TARBALL) | sed "s/ / $(shell stat -c '%s' $(TARBALL)) /")) + @sed -i 's/^Version:.*/Version: $(PKG_VERSION)/' $(PKG_NAME).dsc + @sed -i 's/ [a-f0-9]\+ [0-9]\+ $(PKG_NAME).*tar.*/ $(MD5)/' $(PKG_NAME).dsc + clean: @rm -f $(PKG_NAME)_*.tar.gz -all: clean tarball +all: clean tarball dsc diff --git a/packaging/lthor.dsc b/packaging/lthor.dsc new file mode 100644 index 0000000..e4e4e6e --- /dev/null +++ b/packaging/lthor.dsc @@ -0,0 +1,10 @@ +Format: 1.0 +Source: lthor +Binary: lthor +Architecture: any +Version: 1.0 +Maintainer: Ed Bartosh +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 7), pkg-config, cmake, libarchive-dev +Files: + 58f2bac971d05de313cd5d9ca3e60c9b 9259 lthor_1.0.tar.gz -- 2.34.1