Add Debian package build
This commit is contained in:
1 parent
6ed48022ae
commit
be855ccebe
10 files changed
+154
-18
No files matched your search
@@ -0,0 +1,3 @@
|
||||
/files
|
||||
/*.substvars
|
||||
/kindle2notes/
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
kindle2notes (1.1) unstable; urgency=medium
|
||||
|
||||
* Initial Debian package.
|
||||
|
||||
-- deeaitch <himrodim@gmail.com> Fri, 28 Aug 2026 01:46:16 -0400
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
Source: kindle2notes
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: deeaitch <himrodim@gmail.com>
|
||||
Build-Depends: cmake (>= 3.16), g++, dpkg-dev
|
||||
Standards-Version: 4.6.2
|
||||
Rules-Requires-Root: no
|
||||
Homepage: https://git.himro.ca/deeaitch/kindle2notes
|
||||
|
||||
Package: kindle2notes
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}
|
||||
Description: convert Kindle clippings into structured notes
|
||||
kindle2notes converts Amazon Kindle My Clippings text exports into
|
||||
human-editable LaTeX, Markdown, Org mode, or AsciiDoc documents. Highlights
|
||||
are grouped by book title and include dedicated sections for personal notes.
|
||||
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: kindle2notes
|
||||
Source: https://git.himro.ca/deeaitch/kindle2notes
|
||||
|
||||
Files: *
|
||||
Copyright: 2026 deeaitch <himrodim@gmail.com>
|
||||
License: GPL-3+
|
||||
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, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
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.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General Public License
|
||||
version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||
|
||||
Files: typefactory/typefactory.h
|
||||
Copyright: 2026 Dim Himro
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/architecture.mk
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
|
||||
PACKAGE := kindle2notes
|
||||
BUILD_DIR := build-debian
|
||||
PACKAGE_DIR := $(CURDIR)/debian/$(PACKAGE)
|
||||
PACKAGE_VERSION := $(shell dpkg-parsechangelog -S Version)
|
||||
|
||||
.PHONY: clean build build-arch build-indep binary binary-arch binary-indep
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR) $(PACKAGE_DIR)
|
||||
rm -f debian/files debian/*.substvars
|
||||
|
||||
build: build-arch build-indep
|
||||
|
||||
build-arch:
|
||||
cmake -S . -B $(BUILD_DIR) \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DKINDLE2NOTES_VERSION=$(PACKAGE_VERSION) \
|
||||
-DCMAKE_CXX_FLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)"
|
||||
cmake --build $(BUILD_DIR) --parallel
|
||||
|
||||
build-indep:
|
||||
|
||||
binary: binary-arch binary-indep
|
||||
|
||||
binary-arch: build-arch
|
||||
DESTDIR=$(PACKAGE_DIR) cmake --install $(BUILD_DIR)
|
||||
strip --strip-unneeded $(PACKAGE_DIR)/usr/bin/$(PACKAGE)
|
||||
install -d $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE)
|
||||
install -m 0644 debian/copyright $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE)/copyright
|
||||
install -m 0644 README.md $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE)/README.md
|
||||
gzip -n -9 -c debian/changelog > $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE)/changelog.Debian.gz
|
||||
install -d $(PACKAGE_DIR)/DEBIAN
|
||||
dpkg-shlibdeps -Tdebian/$(PACKAGE).substvars debian/$(PACKAGE)/usr/bin/$(PACKAGE)
|
||||
dpkg-gencontrol -p$(PACKAGE) -P$(PACKAGE_DIR) -Tdebian/$(PACKAGE).substvars
|
||||
dpkg-deb --build --root-owner-group $(PACKAGE_DIR) ..
|
||||
|
||||
binary-indep:
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
tar-ignore = .git
|
||||
tar-ignore = *.pro.user
|
||||
Reference in new issue
Block a user