summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml70
-rw-r--r--.github/workflows/docker-debian/action.yml4
-rw-r--r--.github/workflows/docker-debian/debian-dockerfile8
-rwxr-xr-x.github/workflows/docker-debian/entrypoint.sh14
-rw-r--r--debian/changelog14
-rw-r--r--debian/compat1
-rw-r--r--debian/control18
-rw-r--r--debian/copyright14
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules12
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/local-options2
-rw-r--r--debian/watch1
13 files changed, 160 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..0d4486dc
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,70 @@
1name: packages
2
3on:
4 push:
5 tags:
6 - 'v*.*.*'
7 workflow_dispatch:
8
9env:
10 RELEASE_VERSION: 0.8.0
11
12jobs:
13 build:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v2
17 with:
18 fetch-depth: '0'
19 submodules: 'recursive'
20 - name: install-dependencies
21 run: |
22 git submodule sync
23 sudo apt-get update -qq -y
24 sudo apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot build-essential
25 - name: package-build
26 run: |
27 git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz
28 tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
29 ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
30 cd lagrange-${RELEASE_VERSION}
31 debuild
32 cd ..
33 mkdir -p artifacts
34 mv *deb artifacts/
35 shell: bash
36 - name: plain-build
37 run: |
38 mkdir builddir
39 cd builddir
40 cmake .. -DCMAKE_BUILD_TYPE=Release
41 cmake --build .
42 mkdir -p ../artifacts/
43 tar -czvf ../artifacts/lagrange-${RELEASE_VERSION}-linux-amd64.tar.gz lagrange
44 cd ..
45 - name: upload-artifact
46 uses: actions/upload-artifact@v2
47 with:
48 name: ubuntu-latest
49 path: artifacts
50 debian_build:
51 runs-on: ubuntu-latest
52 steps:
53 - uses: actions/checkout@v2
54 with:
55 fetch-depth: '0'
56 submodules: 'recursive'
57 - name: get-repo-name
58 run: |
59 echo "REPOSITORY_NAME="$(echo $GITHUB_REPOSITORY | awk -F / '{print $2}' | sed -e "s/:refs//") >> $GITHUB_ENV
60 shell: bash
61 - name: install-dependencies
62 run: |
63 git submodule sync
64 - name: debian_docker
65 uses: ./.github/workflows/docker-debian/
66 - name: upload-debian-artifact
67 uses: actions/upload-artifact@v2
68 with:
69 name: debian
70 path: /home/runner/work/${{env.REPOSITORY_NAME}}/${{env.REPOSITORY_NAME}}/artifacts
diff --git a/.github/workflows/docker-debian/action.yml b/.github/workflows/docker-debian/action.yml
new file mode 100644
index 00000000..d510199b
--- /dev/null
+++ b/.github/workflows/docker-debian/action.yml
@@ -0,0 +1,4 @@
1name: 'docker'
2runs:
3 using: 'docker'
4 image: 'debian-dockerfile'
diff --git a/.github/workflows/docker-debian/debian-dockerfile b/.github/workflows/docker-debian/debian-dockerfile
new file mode 100644
index 00000000..147449a0
--- /dev/null
+++ b/.github/workflows/docker-debian/debian-dockerfile
@@ -0,0 +1,8 @@
1# Container image that runs your code
2FROM debian:buster
3
4# Copies your code file from your action repository to the filesystem path `/` of the container
5COPY entrypoint.sh /entrypoint.sh
6
7# Code file to execute when the docker container starts up (`entrypoint.sh`)
8ENTRYPOINT ["/entrypoint.sh"]
diff --git a/.github/workflows/docker-debian/entrypoint.sh b/.github/workflows/docker-debian/entrypoint.sh
new file mode 100755
index 00000000..67518f3b
--- /dev/null
+++ b/.github/workflows/docker-debian/entrypoint.sh
@@ -0,0 +1,14 @@
1#!/bin/sh -xv
2
3apt-get update -qq -y
4apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot git build-essential
5git submodule sync
6
7git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz
8tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
9ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
10cd lagrange-${RELEASE_VERSION}
11debuild
12cd ..
13mkdir -p artifacts
14mv *deb artifacts/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..ad9f06ad
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,14 @@
1lagrange (0.8.0) unstable; urgency=low
2
3 * Added support for Gopher.
4 * Added support for the full palette of 8-bit ANSI foreground colors.
5 * Added option to disable smooth scrolling.
6 * Added button to manually set server certificate as trusted (if the certificate is valid but untrusted).
7 * Added keybindings for Back/Forward navigation.
8 * Added a context menu item for opening HTTP links in the default browser even when a proxy is configured.
9 * Revised identity creation dialog: changed field order, added warning about temporary identities not being saved.
10 * Ctrl+Click opens tab in background, Shift+Ctrl+Click opens as foreground tab. The same modifier keys work with keyboard navigation.
11 * Improved word wrapping of emoticons (:D).
12 * Automatic redirects allowed when the destination URL uses the same scheme as the originating URL. For example, when using a proxy, HTTP(S) is allowed to automatically redirect to other HTTP(S) URLs.
13
14 -- Jaakko Keränen (skyjake) <jaakko.keranen@iki.fi> Sun, 08 Nov 2020 17:11:46 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..b4de3947
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
11
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..88ef8134
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
1Source: lagrange
2Section: net
3Priority: optional
4Maintainer: Jaakko Keränen (skyjake) <jaakko.keranen@iki.fi>
5Build-Depends: cmake, debhelper (>=11~), libsdl2-dev, libssl-dev, libpcre3-dev, zlib1g-dev, libunistring-dev, libmpg123-dev
6Standards-Version: 4.1.4
7Homepage: https://gmi.skyjake.fi/lagrange/
8
9Package: lagrange
10Architecture: any
11Multi-Arch: foreign
12Depends: ${misc:Depends}, ${shlibs:Depends}
13Description: Lagrange - A Beautiful Gemini Client
14 Lagrange is a desktop GUI client for browsing Geminispace.
15 It offers modern conveniences familiar from web browsers,
16 such as smooth scrolling, inline image viewing, multiple
17 tabs, visual themes, Unicode fonts, bookmarks, history,
18 and page outlines.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 00000000..f38d3382
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,14 @@
1Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2Upstream-Name: lagrange
3Upstream-Contact: Jaakko Keränen (skyjake) <jaakko.keranen@iki.fi>
4Source: https://codeberg.org/skyjake/lagrange
5
6Files: *
7Copyright: 2020 Jaakko Keränen
8License: BSD-2-Clause
9
10Files: src/audio/stb_vorbic.c
11 src/stb_image.h
12 src/stb_truetype.h
13Copyright: 2007 Sean Barrett
14License: MIT
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000..4a97dfa7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
# You must remove unused comment lines for the released package.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..f4578eea
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
1#!/usr/bin/make -f
2export DH_VERBOSE = 1
3export DEB_BUILD_MAINT_OPTIONS=hardening=-format
4
5%:
6 dh $@
7
8override_dh_auto_configure:
9 cmake .. -DENABLE_WINDOWPOS_FIX=YES -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/../usr
10
11override_dh_build_configure:
12 cmake --build .
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 00000000..163aaf8d
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
3.0 (quilt)
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 00000000..00131ee8
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1,2 @@
1#abort-on-upstream-changes
2#unapply-patches
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 00000000..9e7c0dae
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1 @@
version=3