parent
80f9d78855
commit
7529e7f00f
@ -0,0 +1,5 @@
|
|||||||
|
swayswitch (0.0.1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Initial Debian packaging.
|
||||||
|
|
||||||
|
-- Micke Nordin <hej@mic.ke> Thu, 27 Dec 2020 13:53:37 +0100
|
@ -0,0 +1 @@
|
|||||||
|
10
|
@ -0,0 +1,15 @@
|
|||||||
|
Source: swayswitch
|
||||||
|
Section: utils
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Micke Nordin <hej@mic.ke>
|
||||||
|
Build-Depends: debhelper (>=10)
|
||||||
|
Standards-Version: 4.0.0
|
||||||
|
Homepage: https://github.com/mickenordin/swayswitch
|
||||||
|
|
||||||
|
Package: swayswitch
|
||||||
|
Section: utils
|
||||||
|
Priority: optional
|
||||||
|
Architecture: all
|
||||||
|
Depends: python3-wxgtk4.0, sway
|
||||||
|
Essential: no
|
||||||
|
Description: SwaySwitch is a simple window switcher for Sway
|
@ -0,0 +1,25 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: swayswitch
|
||||||
|
Upstream-Contact: Micke Nordin <hej@mic.ke>
|
||||||
|
Source: https://github.com/mickenordin/swayswitch
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2020 Micke Nordin <hej@mic.ke>
|
||||||
|
License: GPL-3+
|
||||||
|
|
||||||
|
License: GPL-3+
|
||||||
|
Copyright (C) 2020 Micke Nordin
|
||||||
|
|
||||||
|
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 full text of the GNU General Public
|
||||||
|
License version 3 can be found in the file
|
||||||
|
'/usr/share/common-licenses/GPL-3'.
|
@ -0,0 +1,2 @@
|
|||||||
|
src/swayswitch /usr/bin
|
||||||
|
src/swayswitch.conf /etc/sway/config.d
|
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# See debhelper(7) (uncomment to enable)
|
||||||
|
# output every command that modifies files on the build system.
|
||||||
|
#DH_VERBOSE = 1
|
||||||
|
|
||||||
|
# see FEATURE AREAS in dpkg-buildflags(1)
|
||||||
|
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
|
||||||
|
# see ENVIRONMENT in dpkg-buildflags(1)
|
||||||
|
# package maintainers to append CFLAGS
|
||||||
|
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
|
||||||
|
# package maintainers to append LDFLAGS
|
||||||
|
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
||||||
|
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
@ -0,0 +1 @@
|
|||||||
|
3.0 (git)
|
@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# This is where I keep my sources
|
||||||
|
BASEDIR=~/sources
|
||||||
|
# Version of swayswitch
|
||||||
|
VERSION=$(cat ${BASEDIR}/swayswitch/VERSION)
|
||||||
|
|
||||||
|
cd ${BASEDIR}
|
||||||
|
|
||||||
|
# Import signing key
|
||||||
|
sudo rpm --import ${BASEDIR}/repo/PUBLIC.KEY
|
||||||
|
|
||||||
|
# Convert deb to rpm
|
||||||
|
sudo alien -g -r ${BASEDIR}/swayswitch_${VERSION}_all.deb
|
||||||
|
|
||||||
|
# Remove generated specfile
|
||||||
|
sudo rm ${BASEDIR}/swayswitch-${VERSION}/swayswitch-*.spec
|
||||||
|
|
||||||
|
# Replace with our own
|
||||||
|
sed "s/##VERSION##/${VERSION}/" ${BASEDIR}/swayswitch/rpm/swayswitch-TEMPLATE.spec | sudo tee ${BASEDIR}/swayswitch-${VERSION}/swayswitch-${VERSION}.spec
|
||||||
|
|
||||||
|
# Change to build dir
|
||||||
|
cd swayswitch-${VERSION}
|
||||||
|
|
||||||
|
# Build rpm and put in repo
|
||||||
|
cp ${BASEDIR}/swayswitch/rpm/macros ~/.rpmmacros
|
||||||
|
sudo rpmbuild --buildroot=$(pwd) -bb swayswitch-${VERSION}.spec
|
||||||
|
sudo chown ${USER}:${USER} ${BASEDIR}/swayswitch-${VERSION}.noarch.rpm
|
||||||
|
rpm --addsign ${BASEDIR}/swayswitch-${VERSION}.noarch.rpm
|
||||||
|
cp ${BASEDIR}/swayswitch-${VERSION}.noarch.rpm ${BASEDIR}/repo/rpm/
|
||||||
|
createrepo_c ${BASEDIR}/repo/rpm/
|
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Where I keep the sources
|
||||||
|
BASEDIR=~/sources
|
||||||
|
# Version of swayswitch
|
||||||
|
VERSION=$(cat ${BASEDIR}/swayswitch/VERSION)
|
||||||
|
|
||||||
|
# Change to source dir
|
||||||
|
cd ${BASEDIR}/swayswitch
|
||||||
|
|
||||||
|
# Build deb
|
||||||
|
dpkg-buildpackage -us -uc
|
||||||
|
|
||||||
|
# Add binary and source to repo
|
||||||
|
reprepro --basedir ${BASEDIR}/repo/debian includedeb unstable ${BASEDIR}/swayswitch_${VERSION}_all.deb
|
||||||
|
reprepro --basedir ${BASEDIR}/repo/debian -S utils --priority optional includedsc unstable ${BASEDIR}/swayswitch_${VERSION}.dsc
|
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
BASEDIR=~/sources
|
||||||
|
${BASEDIR}/swayswitch/packaging_scripts/version.sh
|
||||||
|
${BASEDIR}/swayswitch/packaging_scripts/reprepro.sh
|
||||||
|
${BASEDIR}/swayswitch/packaging_scripts/alien.sh
|
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
BASEDIR=~/sources
|
||||||
|
version="${1}"
|
||||||
|
chlog_msg="${2}"
|
||||||
|
if [[ "x${version}" == "x" ]]; then
|
||||||
|
echo -n "Enter version (x.x.x): "
|
||||||
|
read version
|
||||||
|
fi
|
||||||
|
if [[ "x${chlog_msg}" == "x" ]]; then
|
||||||
|
echo -n "Enter changelog message: "
|
||||||
|
read chlog_msg
|
||||||
|
fi
|
||||||
|
# Code
|
||||||
|
echo ${version} > ${BASEDIR}/swayswitch/VERSION
|
||||||
|
|
||||||
|
# Changelog
|
||||||
|
echo 'swayswitch ('${version}') unstable; urgency=low
|
||||||
|
|
||||||
|
* '${chlog_msg}'
|
||||||
|
|
||||||
|
-- Micke Nordin <hej@mic.ke> '$(LC_ALL=C date "+%a, %d %b %Y %T %z")'
|
||||||
|
'| wl-copy
|
||||||
|
|
||||||
|
vim ${BASEDIR}/swayswitch/debian/changelog
|
@ -0,0 +1,3 @@
|
|||||||
|
%_gpg_name Mikael Nordin <hej@mic.ke>
|
||||||
|
%_gpg_path /home/micke/.gnupg
|
||||||
|
%__gpg /usr/bin/gpg
|
@ -0,0 +1,24 @@
|
|||||||
|
Buildroot: /home/micke/sources/swayswitch-##VERSION##
|
||||||
|
Name: swayswitch
|
||||||
|
Version: ##VERSION##
|
||||||
|
Release: 1
|
||||||
|
Requires: python3-wxpython4
|
||||||
|
Summary: SwaySwitch is a simple window switcher for sway
|
||||||
|
License: GPLv3+
|
||||||
|
Distribution: Fedora
|
||||||
|
|
||||||
|
%define _binary_filedigest_algorithm 2
|
||||||
|
%define _rpmdir ../
|
||||||
|
%define _rpmfilename %%{NAME}-%%{VERSION}.noarch.rpm
|
||||||
|
%define _unpackaged_files_terminate_build 0
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
SwaySwitch is a simple window switcher for sway:
|
||||||
|
<https://swaywm.org>
|
||||||
|
|
||||||
|
%files
|
||||||
|
"/usr/bin/swayswitch"
|
||||||
|
%dir "/usr/share/doc/swayswitch/"
|
||||||
|
"/usr/share/doc/swayswitch/changelog.gz"
|
||||||
|
"/usr/share/doc/swayswitch/copyright"
|
@ -0,0 +1,6 @@
|
|||||||
|
mode "switcher" {
|
||||||
|
# Remove normal bidnings and set a dummy variable so we do something
|
||||||
|
set $hello "hello"
|
||||||
|
}
|
||||||
|
|
||||||
|
bindsym $mod+Tab exec /usr/bin/swayswitch, mode "switcher"
|
Loading…
Reference in new issue