Skip to content

Commit

Permalink
Add Debian configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaillard committed Dec 17, 2023
1 parent 21b734b commit 18fb7aa
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/mclip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ jobs:
- name: Make
run: make

- name: Make dist
run: make dist

- name: Debian package
run: |
sudo apt-get install -y devscripts
mkdir -p "${RUNNER_TEMP}/debian-packaging"
cp mclip-*.tar.gz "${RUNNER_TEMP}/debian-packaging"
cd "${RUNNER_TEMP}/debian-packaging"
ORIG_TAR_GZ=$(ls mclip-*.gz | sed -E 's/^mclip-([[:digit:]])\.([[:digit:]])\.([[:digit:]])\.tar\.gz$/mclip_\1.\2.\3\.orig\.tar\.gz/g')
mv mclip-*.tar.gz "${ORIG_TAR_GZ}"
tar xf "${ORIG_TAR_GZ}"
cd mclip-*/
cp -R "${GITHUB_WORKSPACE}/debian" .
debuild -us -uc
- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,7 @@ Makefile
# Other
########################################################################################################################

# make dist and make distdir
mclip-*
mclip_*
src/mclip
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SUBDIRS = src
dist_doc_DATA = README.md
man_MANS = man/$(PACKAGE).1
EXTRA_DIST = $(man_MANS)
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mclip (1.0.0-1) UNRELEASED; urgency=low

* Initial release.

-- Baptiste Gaillard <[email protected]> Sat, 16 Dec 2023 09:00:37 +0100
17 changes: 17 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: mclip
Section: utils
Priority: optional
Maintainer: Baptiste Gaillard <[email protected]>
Build-Depends: debhelper-compat (= 13), dh-autoreconf
Standards-Version: 4.5.1
Homepage: https://github.com/bgaillard/mclip
Rules-Requires-Root: no
Vcs-Git: https://github.com/bgaillard/mclip.git
#Vcs-Browser: https://salsa.debian.org/debian/mclip

Package: mclip
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: mclip (for "Memory CLIPboard") is a very simple clipboard manager which stores its data inside a POSIX
shared memory object.
11 changes: 11 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mclip
Upstream-Contact: Baptiste Gaillard <[email protected]>
Source: https://github.com/bgaillard/mclip
#
# Please double check copyright with the licensecheck(1) command.

Files:
*
Copyright: 2023 Baptiste Gaillard
License: GPL-3+
12 changes: 12 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#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

%:
dh $@ --with autoreconf

#override_dh_install:
# dh_install --list-missing -X.la -X.pyc -X.pyo

0 comments on commit 18fb7aa

Please sign in to comment.