Page MenuHomePhabricator (Chris)

No OneTemporary

Size
9 KB
Referenced Files
None
Subscribers
None
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f149a16
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+guitar (1.2.0-1) groovy; urgency=medium
+
+ * Initial release.
+
+ -- Chris <dpkg@chris-nz.com> Fri, 16 Apr 2021 22:00:24 +1200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b25053e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: guitar
+Section: vcs
+Priority: optional
+Maintainer: Chris <dpkg@chris-nz.com>
+Build-Depends: cmake, debhelper,
+ libqt5svg5-dev,
+ libssl-dev,
+ qtbase5-dev,
+ qttools5-dev,
+ zlib1g-dev
+Standards-Version: 4.4.1
+Homepage: https://github.com/soramimi/Guitar
+
+Package: guitar
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Git GUI Client
+ Guitar is a git GUI in Qt5.
+ .
+ Guitar can do merges, inspect log and graph,
+ and most other things you'd want from a GUI client.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..81b0669
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: Guitar
+Maintainer: Chris <dpkg@chris-nz.com>
+Source: https://github.com/soramimi/Guitar
+
+Files: *
+Copyright: 2021, soramimi <fi7s-fct@asahi-net.or.jp>
+License: GPL-2
+
+License: GPL-2
+ This program is free software; you can redistribute it
+ and/or modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation;
+ version 2 of the License.
+ .
+ This program 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 full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..db46b4b
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+LinuxDesktop/guitar.svg /usr/share/icons/guitar
+LinuxDesktop/guitar.desktop /usr/share/applications
\ No newline at end of file
diff --git a/debian/patches/add-install-target b/debian/patches/add-install-target
new file mode 100644
index 0000000..5e44c34
--- /dev/null
+++ b/debian/patches/add-install-target
@@ -0,0 +1,22 @@
+Description: add install target
+ lowercases "guitar" in executable name and create install destination
+
+--- guitar-1.2.0.orig/src/CMakeLists.txt
++++ guitar-1.2.0/src/CMakeLists.txt
+@@ -51,7 +51,7 @@
+ set_target_properties(guitar-lib PROPERTIES OUTPUT_NAME guitar)
+
+ # main.cppのコンパイル
+-add_executable(${PROJECT_NAME}
++add_executable(guitar
+ main.cpp
+ ${Guitar_RESOURCES}
+ ${Guitar_QM_FILES}
+@@ -59,4 +59,6 @@
+ )
+
+ # main.cppとそれ以外をリンク
+-target_link_libraries(${PROJECT_NAME} guitar-lib)
++target_link_libraries(guitar guitar-lib)
++
++install(TARGETS guitar RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
diff --git a/debian/patches/fix-build-(include-paths) b/debian/patches/fix-build-(include-paths)
new file mode 100644
index 0000000..9a1d924
--- /dev/null
+++ b/debian/patches/fix-build-(include-paths)
@@ -0,0 +1,32 @@
+Description: fix build (include paths)
+ CMakeLists: add an include dir called src/coloredit
+ to fix missing colorwidget header error
+ .
+ guitar (1.2.0-1) groovy; urgency=medium
+ .
+ * Initial release.
+Author: Chris <dpkg@chris-nz.com>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: 2021-04-16
+
+--- guitar-1.2.0.orig/src/CMakeLists.txt
++++ guitar-1.2.0/src/CMakeLists.txt
+@@ -46,6 +46,7 @@ target_link_libraries(guitar-lib PUBLIC
+ target_include_directories(guitar-lib PUBLIC ${CMAKE_BINARY_DIR})
+ target_include_directories(guitar-lib PUBLIC ${PROJECT_SOURCE_DIR}/src)
+ target_include_directories(guitar-lib PUBLIC ${PROJECT_SOURCE_DIR}/src/texteditor)
++target_include_directories(guitar-lib PUBLIC ${PROJECT_SOURCE_DIR}/src/coloredit)
+
+ set_target_properties(guitar-lib PROPERTIES OUTPUT_NAME guitar)
+
diff --git a/debian/patches/normalize-icon-filename b/debian/patches/normalize-icon-filename
new file mode 100644
index 0000000..c56e0da
--- /dev/null
+++ b/debian/patches/normalize-icon-filename
@@ -0,0 +1,46 @@
+Description: normalize icon filename
+ Icon filename changed to "guitar" so it fits in better
+ .
+ guitar (1.2.0-1) groovy; urgency=medium
+ .
+ * Initial release.
+Author: Chris <dpkg@chris-nz.com>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: 2021-04-16
+
+--- /dev/null
++++ guitar-1.2.0/LinuxDesktop/guitar.svg
+@@ -0,0 +1,22 @@
++<?xml version="1.0" encoding="utf-8"?>
++<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
++<svg version="1.1" id="レイヤー_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
++ y="0px" viewBox="0 0 332.3 332.5" style="enable-background:new 0 0 332.3 332.5;" xml:space="preserve">
++<style type="text/css">
++ .st0{fill:#FFFFFF;}
++ .st1{fill:#40A0FF;}
++</style>
++<path class="st0" d="M275.5,131.2c-5.2-2.6-10.2-3.9-14.2-4.9c-1.2-0.3-2.4-0.6-3.5-0.9l74.4-74.4l0-4.2c-0.1-9.5-3-18.5-8.4-26.4
++ c-1.6-2.4-3.9-5.2-6.4-7.5c-2.3-2.2-5.9-4.8-9.1-6.6c-7.1-4-15.1-6.2-23.2-6.2h-7.9L228,49.3c-12.4-10.8-23.2-17.6-39-17.6
++ c-3.3,0-6.7,0.3-10.4,0.9c-18.8,3-33.3,17.2-40.9,40c-1.3,4-2.3,7.3-3.1,10c-2.6,8.5-2.8,9.4-7,12.7c-5.9,4.7-17.8,5.5-30.4,6.2
++ c-10.1,0.6-20.5,1.3-30.6,3.9c-30,7.9-55.5,34.1-63.5,65.2c-9.5,37,1.8,69.1,37.9,107.5c33,35.1,68,54.5,98.4,54.5h0.1
++ c32,0,64.8-19.1,83.6-48.6c7.6-12,9.1-30.5,10.5-48.5c0.8-10.2,2-25.7,4.8-29.2c5.1-6.6,13.6-9,22.5-11.5
++ c10.2-2.9,21.8-6.2,27.4-17.2c4.8-9.5,5.8-19.6,2.8-28.6C288.5,141.1,282.9,134.8,275.5,131.2z"/>
++<path class="st1" d="M322.2,46.8c-0.1-8-2.7-15.4-7-21.4L185.9,154.8c2.7,6.5,1.5,14.4-3.8,19.7c-1.7,1.7-3.9,3.1-5.9,3.9v64.5
++ c2,0.9,4.1,2.2,5.9,3.9c7,7,7,18.4,0,25.5c-7,7-18.4,7-25.4,0c-7-7-7-18.4,0-25.5c1.4-1.4,3-2.6,4.8-3.4l0-63.9l-24.3,24.3
++ c2.7,6.5,1.4,14.3-3.9,19.6c-7,7-18.4,7-25.5,0c-7-7-7-18.4,0-25.4c5-5,12.3-6.4,18.6-4.3l26-26c-2.2-6.3-0.8-13.6,4.3-18.6
++ c5-5,12.2-6.4,18.5-4.3L304.4,15.4c-5.6-3.4-12.2-5.4-19.2-5.4h-3.8l-53.1,53.1c-18.3-17-28.1-23.8-48.1-20.6
++ c-16.9,2.7-27.3,16.3-33,33.3s-4.8,20.5-13.3,27.3c-14,11.2-41.8,6-64.7,12c-26,6.8-49.2,30.2-56.3,58c-9.2,35.5,4,64.7,35.5,98.2
++ c29.4,31.3,62.2,51.4,91.2,51.3c27,0,57.1-15.6,75.2-44c12-18.8,6.2-66.2,15.8-78.5c13.9-17.8,41.5-12.5,48.8-27
++ c6.6-13.1,3.4-27.1-8.3-32.8c-7.2-3.5-14.3-4.3-19.1-6.3c-3.7-1.5-6.5-5.7-6.1-10.8L322.2,46.8z"/>
++</svg>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0ee61c6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+fix-build-(include-paths)
+normalize-icon-filename
+add-install-target
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..786fa6c
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,2 @@
+#!/bin/sh
+update-desktop-database
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ce6b582
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_CXXFLAGS_MAINT_APPEND = -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT
+
+%:
+ dh $@ --buildsystem=cmake
+
+
+# dh_make generated override targets
+# This is example for Cmake (See https://bugs.debian.org/641051 )
+#override_dh_auto_configure:
+# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..46ebe02
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Thu, Sep 11, 8:24 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42727
Default Alt Text
(9 KB)

Event Timeline