add debian packaging

This commit is contained in:
Tilman Kranz 2025-03-30 15:31:48 +02:00
parent f02ec71a3b
commit 1b729c6349
5 changed files with 30 additions and 1 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
debian/.debhelper
debian/debhelper-build-stamp
debian/files
debian/pulseaudio-tcp.substvars
debian/pulseaudio-tcp

View File

@ -4,20 +4,24 @@ BINDIR=$(PREFIX)/bin
APPDIR=$(PREFIX)/share/applications
DESTDIR=
.PHONY: all install-bin install-desktop install
all:
install-bin: $(NAME)
@install -d -m 755 "$(DESTDIR)$(BINDIR)"
@install -m 755 "$(NAME)" "$(DESTDIR)$(BINDIR)"/"$(NAME)"
@echo "INFO: $(NAME) was installed to $(BINDIR)"
install-desktop: $(NAME).desktop.in
@install -d -m 755 "$(DESTDIR)$(APPDIR)"
@cat "$(NAME)".desktop.in | \
sed -e "\
s|@BINDIR@|$(BINDIR)|; \
s|@NAME@|$(NAME)| \
" \
< $(NAME).desktop.in \
> "$(APPDIR)"/"$(NAME)".desktop
> "$(DESTDIR)$(APPDIR)"/"$(NAME)".desktop
@echo "INFO: $(NAME).desktop was installed to $(APPDIR)"
install: install-bin install-desktop

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
pulseaudio-tcp (0.1) UNRELEASED; urgency=medium
* Initial release
-- Tilman Kranz <t.kranz@tk-sls.de> Sun, 30 Mar 2025 15:24:10 +0200

11
debian/control vendored Normal file
View File

@ -0,0 +1,11 @@
Source: pulseaudio-tcp
Section: misc
Priority: extra
Maintainer: Tilman Kranz <t.kranz@tk-sls.de>
Build-Depends: debhelper-compat (= 13), make
Standards-Version: 3.9.4
Package: pulseaudio-tcp
Architecture: all
Depends: openssh-client, pulseaudio-utils, zenity, ${misc:Depends}
Description: Setup encrypted redirection of Pulseaudio to remote host

4
debian/rules vendored Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/make -f
%:
PREFIX=/usr dh $@