Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 01c13bd

Browse files
committed
v4.18 - first release using i3-gaps-debian
1 parent 72e54c4 commit 01c13bd

File tree

13 files changed

+328
-1
lines changed

13 files changed

+328
-1
lines changed

.github/workflows/main.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build i3-gaps Debian packages
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Build packages
14+
run: |
15+
set -xe
16+
mkdir -p assets
17+
./build.sh -i debian:buster-slim
18+
rename.ul .deb _debian_buster.deb target/i3-gaps_*.deb
19+
mv -n target/i3-gaps_*.deb assets/
20+
21+
./build.sh -i debian:testing-slim
22+
rename.ul .deb _debian_testing.deb target/i3-gaps_*.deb
23+
mv -n target/i3-gaps_*.deb assets/
24+
25+
./build.sh -i debian:unstable-slim
26+
rename.ul .deb _debian_unstable.deb target/i3-gaps_*.deb
27+
mv -n target/i3-gaps_*.deb assets/
28+
- name: Create release
29+
id: create_release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
tag_name: ${{ github.ref }}
35+
release_name: ${{ github.ref }}
36+
draft: false
37+
prerelease: false
38+
- name: Upload packages
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
ID: ${{ steps.create_release.outputs.id }}
42+
run: |
43+
set -xe
44+
for asset in assets/*
45+
do
46+
UPLOAD_URL="https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$ID/assets"
47+
curl \
48+
-X POST \
49+
-H "Authorization: token $GITHUB_TOKEN" \
50+
-H "Content-Type: application/octet-stream" \
51+
--data-binary @"$asset" \
52+
"${UPLOAD_URL}?name=$(basename $asset)"
53+
done

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2020, Martin Simon
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,67 @@
11
# i3-gaps-debian
2-
Debian packages for i3-gaps.
2+
3+
This repository contains the source to build a Debian package for [i3-gaps](https://github.com/Airblader/i3).
4+
5+
## Usage
6+
7+
If you have [Docker](https://www.docker.com/) installed locally, just run the following:
8+
9+
```bash
10+
user@hostname$ ./build.sh
11+
```
12+
By default this will build i3-gaps 4.18 on Debian Buster.
13+
14+
If you want to customize the build at runtime, use the following:
15+
16+
```bash
17+
user@hostname$ ./build.sh -i debian:unstable-slim -v 4.16.1
18+
```
19+
Don't forget to update `debian/changelog` so your package is generated with the correct version.
20+
21+
## Release
22+
23+
To publish a new package version to Github, follow these steps:
24+
* update the `VERSION` variable in `build.sh`
25+
* add a new entry in `debian/changelog`
26+
* create a new tag with the Debian package version
27+
28+
## License
29+
30+
```
31+
BSD 3-Clause License
32+
33+
Copyright (c) 2020, Martin Simon
34+
All rights reserved.
35+
36+
Redistribution and use in source and binary forms, with or without
37+
modification, are permitted provided that the following conditions are met:
38+
39+
1. Redistributions of source code must retain the above copyright notice, this
40+
list of conditions and the following disclaimer.
41+
42+
2. Redistributions in binary form must reproduce the above copyright notice,
43+
this list of conditions and the following disclaimer in the documentation
44+
and/or other materials provided with the distribution.
45+
46+
3. Neither the name of the copyright holder nor the names of its
47+
contributors may be used to endorse or promote products derived from
48+
this software without specific prior written permission.
49+
50+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
51+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
52+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
53+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
54+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
55+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
56+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
57+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
58+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
59+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
60+
```
61+
62+
63+
## References
64+
65+
* [Airblader/i3](https://github.com/Airblader/i3)
66+
* [ayosec/polybar-debian](https://github.com/ayosec/polybar-debian)
67+
* [i3/i3](https://github.com/i3/i3)

build.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#! /usr/bin/env bash
2+
3+
set -eu
4+
5+
IMAGE="debian:buster-slim"
6+
TARGET="$(dirname "$0" | xargs realpath)"
7+
VERSION="4.18"
8+
9+
while getopts "v:i:h" opt
10+
do
11+
case "$opt" in
12+
v)
13+
VERSION="$OPTARG"
14+
;;
15+
i)
16+
IMAGE="$OPTARG"
17+
;;
18+
h)
19+
echo "Usage: $0 [-i image] [-v version]"
20+
exit 0
21+
;;
22+
*)
23+
exit 1
24+
;;
25+
esac
26+
done
27+
28+
main() {
29+
docker run --rm --name i3-gaps-build-$$ \
30+
--volume "$TARGET:/target" \
31+
--workdir /target \
32+
--env "VERSION=$VERSION" \
33+
--user root "$IMAGE" \
34+
sh entrypoint.sh
35+
}
36+
37+
main

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
i3-gaps (4.18-1) unstable; urgency=medium
2+
3+
* Version 4.18
4+
5+
-- Martin Simon <me@martinsimon.me> Sat, 11 Apr 2020 00:00:00 +0000

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11

debian/control

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Source: i3-gaps
2+
Section: x11
3+
Priority: extra
4+
Maintainer: Martin Simon <me@martinsimon.me>
5+
Build-Depends:
6+
asciidoc,
7+
debhelper (>= 11),
8+
dh-autoreconf,
9+
docbook-xml,
10+
dpkg-dev,
11+
libcairo2-dev,
12+
libev-dev,
13+
libpango1.0-dev,
14+
libpcre3-dev,
15+
libpod-simple-perl,
16+
libstartup-notification0-dev,
17+
libx11-dev,
18+
libxcb-cursor-dev,
19+
libxcb-icccm4-dev,
20+
libxcb-keysyms1-dev,
21+
libxcb-randr0-dev,
22+
libxcb-shape0-dev,
23+
libxcb-util0-dev,
24+
libxcb-xinerama0-dev,
25+
libxcb-xkb-dev,
26+
libxcb-xrm-dev,
27+
libxkbcommon-dev,
28+
libxkbcommon-x11-dev,
29+
libyajl-dev,
30+
pkg-config,
31+
xcb-proto,
32+
xmlto
33+
Standards-Version: 4.3.0
34+
Homepage: https://github.com/Airblader/i3
35+
36+
Package: i3-gaps
37+
Architecture: any
38+
Depends: ${shlibs:Depends}, ${misc:Depends}
39+
Provides: x-window-manager
40+
Recommends: xfonts-base, fonts-dejavu-core, libanyevent-i3-perl (>= 0.12), libjson-xs-perl, rxvt-unicode | x-terminal-emulator
41+
Description: i3-gaps is a fork of i3wm, a tiling window manager for X11. It is
42+
kept up to date with upstream, adding a few additional features such as gaps
43+
between windows.

debian/copyright

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: i3-gaps
3+
Source: https://github.com/Airblader/i3
4+
5+
Files: *
6+
Copyright: 2009 Michael Stapelberg
7+
License: BSD-3-clause
8+
9+
Files: debian/*
10+
Copyright: 2020 Martin Simon <me@martinsimon.me>
11+
License: BSD-3-clause
12+
13+
License: BSD-3-clause
14+
Copyright: © 2009 Michael Stapelberg <michael at i3wm dot org>
15+
All rights reserved.
16+
.
17+
Redistribution and use in source and binary forms, with or without
18+
modification, are permitted provided that the following conditions are met:
19+
.
20+
* Redistributions of source code must retain the above copyright notice, this
21+
list of conditions and the following disclaimer.
22+
.
23+
* Redistributions in binary form must reproduce the above copyright notice,
24+
this list of conditions and the following disclaimer in the documentation
25+
and/or other materials provided with the distribution.
26+
.
27+
* Neither the name of Michael Stapelberg, i3 nor the names of its contributors
28+
may be used to endorse or promote products derived from this software
29+
without specific prior written permission.
30+
.
31+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
32+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
35+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
38+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
39+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

debian/rules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/make -f
2+
3+
override_dh_auto_test:
4+
5+
override_dh_auto_configure:
6+
dh_auto_configure -- --docdir=/usr/share/doc/i3 --disable-sanitizers
7+
8+
%:
9+
dh $@ --parallel --builddirectory=build --with=autoreconf

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)