Initial commit

This commit is contained in:
alan (NyxTrail) 2024-01-22 15:17:07 +00:00
commit 3475a131a9
16 changed files with 2482 additions and 0 deletions

8
README.Debian Normal file
View File

@ -0,0 +1,8 @@
hyprland for Debian
Please edit this to provide information specific to
this hyprland Debian package.
(Automatically generated by debmake Version 4.4.0)
-- Alan M Varghese (NyxTrail) <alan@digistorm.in> Sun, 21 Jan 2024 19:39:47 +0000

7
debian/changelog vendored Normal file
View File

@ -0,0 +1,7 @@
hyprland (0.34.0-1) UNRELEASED; urgency=low
* Initial release. Closes: #1040971
* Modified Makefile to support DESTDIR variable so that we can "install"
locally during the build process
-- Alan M Varghese (NyxTrail) <alan@digistorm.in> Sun, 21 Jan 2024 19:39:47 +0000

18
debian/control vendored Normal file
View File

@ -0,0 +1,18 @@
Source: hyprland
Section: unknown
Priority: optional
Maintainer: Alan M Varghese (NyxTrail) <alan@digistorm.in>
Build-Depends: cmake, debhelper-compat (= 13)
Standards-Version: 4.6.1
Homepage: <insert the upstream URL, if relevant>
Rules-Requires-Root: no
#Vcs-Git: https://salsa.debian.org/debian/hyprland.git
#Vcs-Browser: https://salsa.debian.org/debian/hyprland
Package: hyprland
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: auto-generated package by debmake
This Debian binary package was auto-generated by the
debmake(1) command provided by the debmake package.

2239
debian/copyright vendored Normal file

File diff suppressed because it is too large Load Diff

1
debian/debhelper-build-stamp vendored Normal file
View File

@ -0,0 +1 @@
hyprland

99
debian/patches/000-destdir.patch vendored Normal file
View File

@ -0,0 +1,99 @@
--- a/Makefile
+++ b/Makefile
@@ -34,38 +34,38 @@
@if [ ! -f ./build/Hyprland ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
@echo -en "!NOTE: Please note make install does not compile Hyprland and only installs the already built files."
- mkdir -p ${PREFIX}/share/wayland-sessions
- mkdir -p ${PREFIX}/bin
- cp -f ./build/Hyprland ${PREFIX}/bin
- cp -f ./build/hyprctl/hyprctl ${PREFIX}/bin
- cp -f ./build/hyprpm/hyprpm ${PREFIX}/bin
- chmod 755 ${PREFIX}/bin/Hyprland
- chmod 755 ${PREFIX}/bin/hyprctl
- chmod 755 ${PREFIX}/bin/hyprpm
- ln -s -r ${PREFIX}/bin/Hyprland ${PREFIX}/bin/hyprland
- if [ ! -f ${PREFIX}/share/wayland-sessions/hyprland.desktop ]; then cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions; fi
- mkdir -p ${PREFIX}/share/hyprland
- cp ./assets/wall_* ${PREFIX}/share/hyprland
- mkdir -p ${PREFIX}/share/xdg-desktop-portal
- cp ./assets/hyprland-portals.conf ${PREFIX}/share/xdg-desktop-portal
+ mkdir -p ${DESTDIR}${PREFIX}/share/wayland-sessions
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ cp -f ./build/Hyprland ${DESTDIR}${PREFIX}/bin
+ cp -f ./build/hyprctl/hyprctl ${DESTDIR}${PREFIX}/bin
+ cp -f ./build/hyprpm/hyprpm ${DESTDIR}${PREFIX}/bin
+ chmod 755 ${DESTDIR}${PREFIX}/bin/Hyprland
+ chmod 755 ${DESTDIR}${PREFIX}/bin/hyprctl
+ chmod 755 ${DESTDIR}${PREFIX}/bin/hyprpm
+ ln -s -r ${DESTDIR}${PREFIX}/bin/Hyprland ${DESTDIR}${PREFIX}/bin/hyprland
+ if [ ! -f ${DESTDIR}${PREFIX}/share/wayland-sessions/hyprland.desktop ]; then cp ./example/hyprland.desktop ${DESTDIR}${PREFIX}/share/wayland-sessions; fi
+ mkdir -p ${DESTDIR}${PREFIX}/share/hyprland
+ cp ./assets/wall_* ${DESTDIR}${PREFIX}/share/hyprland
+ mkdir -p ${DESTDIR}${PREFIX}/share/xdg-desktop-portal
+ cp ./assets/hyprland-portals.conf ${DESTDIR}${PREFIX}/share/xdg-desktop-portal
- mkdir -p ${PREFIX}/share/man/man1
- install -m644 ./docs/*.1 ${PREFIX}/share/man/man1
+ mkdir -p ${DESTDIR}${PREFIX}/share/man/man1
+ install -m644 ./docs/*.1 ${DESTDIR}${PREFIX}/share/man/man1
- mkdir -p ${PREFIX}/lib/
- cp ./subprojects/wlroots/build/libwlroots.so.13032 ${PREFIX}/lib/
+ mkdir -p ${DESTDIR}${PREFIX}/lib/
+ cp ./subprojects/wlroots/build/libwlroots.so.13032 ${DESTDIR}${PREFIX}/lib/
$(MAKE) installheaders
uninstall:
- rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop
- rm -f ${PREFIX}/bin/Hyprland
- rm -f ${PREFIX}/bin/hyprctl
- rm -f ${PREFIX}/bin/hyprpm
- rm -f ${PREFIX}/lib/libwlroots.so.13032
- rm -rf ${PREFIX}/share/hyprland
- rm -f ${PREFIX}/share/man/man1/Hyprland.1
- rm -f ${PREFIX}/share/man/man1/hyprctl.1
+ rm -f ${DESTDIR}${PREFIX}/share/wayland-sessions/hyprland.desktop
+ rm -f ${DESTDIR}${PREFIX}/bin/Hyprland
+ rm -f ${DESTDIR}${PREFIX}/bin/hyprctl
+ rm -f ${DESTDIR}${PREFIX}/bin/hyprpm
+ rm -f ${DESTDIR}${PREFIX}/lib/libwlroots.so.13032
+ rm -rf ${DESTDIR}${PREFIX}/share/hyprland
+ rm -f ${DESTDIR}${PREFIX}/share/man/man1/Hyprland.1
+ rm -f ${DESTDIR}${PREFIX}/share/man/man1/hyprctl.1
pluginenv:
@echo -en "$(MAKE) pluginenv has been deprecated.\nPlease run $(MAKE) all && sudo $(MAKE) installheaders\n"
@@ -74,20 +74,20 @@
installheaders:
@if [ ! -f ./src/version.h ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
- mkdir -p ${PREFIX}/include/hyprland
- mkdir -p ${PREFIX}/include/hyprland/protocols
- mkdir -p ${PREFIX}/include/hyprland/wlroots
- mkdir -p ${PREFIX}/share/pkgconfig
+ mkdir -p ${DESTDIR}${PREFIX}/include/hyprland
+ mkdir -p ${DESTDIR}${PREFIX}/include/hyprland/protocols
+ mkdir -p ${DESTDIR}${PREFIX}/include/hyprland/wlroots
+ mkdir -p ${DESTDIR}${PREFIX}/share/pkgconfig
- find src -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland
- cd subprojects/wlroots/include && find . -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland/wlroots && cd ../../..
- cd subprojects/wlroots/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland/wlroots && cd ../../../..
- cp ./protocols/*-protocol.h ${PREFIX}/include/hyprland/protocols
- cp ./build/hyprland.pc ${PREFIX}/share/pkgconfig
+ find src -name '*.h*' -print0 | cpio --quiet -0dump ${DESTDIR}${PREFIX}/include/hyprland
+ cd subprojects/wlroots/include && find . -name '*.h*' -print0 | cpio --quiet -0dump ${DESTDIR}${PREFIX}/include/hyprland/wlroots && cd ../../..
+ cd subprojects/wlroots/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump ${DESTDIR}${PREFIX}/include/hyprland/wlroots && cd ../../../..
+ cp ./protocols/*-protocol.h ${DESTDIR}${PREFIX}/include/hyprland/protocols
+ cp ./build/hyprland.pc ${DESTDIR}${PREFIX}/share/pkgconfig
if [ -d /usr/share/pkgconfig ]; then cp ./build/hyprland.pc /usr/share/pkgconfig 2>/dev/null || true; fi
- chmod -R 755 ${PREFIX}/include/hyprland
- chmod 755 ${PREFIX}/share/pkgconfig
+ chmod -R 755 ${DESTDIR}${PREFIX}/include/hyprland
+ chmod 755 ${DESTDIR}${PREFIX}/share/pkgconfig
man:
pandoc ./docs/Hyprland.1.rst \

View File

@ -0,0 +1,22 @@
--- a/Makefile
+++ b/Makefile
@@ -52,8 +52,8 @@
mkdir -p ${DESTDIR}${PREFIX}/share/man/man1
install -m644 ./docs/*.1 ${DESTDIR}${PREFIX}/share/man/man1
- mkdir -p ${DESTDIR}${PREFIX}/lib/
- cp ./subprojects/wlroots/build/libwlroots.so.13032 ${DESTDIR}${PREFIX}/lib/
+ mkdir -p ${DESTDIR}${PREFIX}/lib/hyprland
+ cp ./subprojects/wlroots/build/libwlroots.so.13032 ${DESTDIR}${PREFIX}/lib/hyprland/
$(MAKE) installheaders
@@ -62,7 +62,7 @@
rm -f ${DESTDIR}${PREFIX}/bin/Hyprland
rm -f ${DESTDIR}${PREFIX}/bin/hyprctl
rm -f ${DESTDIR}${PREFIX}/bin/hyprpm
- rm -f ${DESTDIR}${PREFIX}/lib/libwlroots.so.13032
+ rm -rf ${DESTDIR}${PREFIX}/lib/hyprland
rm -rf ${DESTDIR}${PREFIX}/share/hyprland
rm -f ${DESTDIR}${PREFIX}/share/man/man1/Hyprland.1
rm -f ${DESTDIR}${PREFIX}/share/man/man1/hyprctl.1

3
debian/patches/series vendored Normal file
View File

@ -0,0 +1,3 @@
# You must remove unused comment lines for the released package.
000-destdir.patch
001-move-libwlroots-to-hyprland-location.patch

27
debian/rules vendored Executable file
View File

@ -0,0 +1,27 @@
#!/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,-O1
%:
dh $@
override_dh_auto_install:
chrpath -d build/Hyprland
dh_auto_install -- PREFIX=/usr
override_dh_clean:
dh_clean
# call clear target provided by Hyprland
make clear
# clean up some directories created during the build
rm -rf subprojects/wlroots/src/wlroots-stamp
rm -f subprojects/udis86/libudis86/itab*
rm -rf subprojects/wlroots/tmp
# Hyprland made this change. Revert it or dpkg-source will complain that
# meson.build does not match the one in the original source tarball
sed -E -i -e 's/soversion = 13032/soversion = 13/g' subprojects/wlroots/meson.build
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)"

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

4
debian/source/local-options vendored Normal file
View File

@ -0,0 +1,4 @@
#
# ### gbp-buildpackage(1) user may like this. ###
#abort-on-upstream-changes
#unapply-patches

4
debian/source/options vendored Normal file
View File

@ -0,0 +1,4 @@
#
# ### dgit-maint-merge(7) workflow user need this ###
# single-debian-patch
# auto-commit

22
debian/source/patch-header vendored Normal file
View File

@ -0,0 +1,22 @@
The automatically generated patch puts this free form text on top of it.
If you are using gbp-buildpackage(1), you probably don't need this file.
If you are using dgit-maint-merge(7), please consider text as follows.
The Debian packaging of foo is maintained in git, using the merging workflow
described in dgit-maint-merge(7). There isn't a patch queue that can be
represented as a quilt series.
A detailed breakdown of the changes is available from their canonical
representation - git commits in the packaging repository. For example, to see
the changes made by the Debian maintainer in the first upload of upstream
version 1.2.3, you could use:
% git clone https://git.dgit.debian.org/foo
% cd foo
% git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'
(If you have dgit, use `dgit clone foo`, rather than plain `git clone`.)
A single combined diff, containing all the changes, follows.

16
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,16 @@
#
# DEP-12: Per-package machine-readable metadata about Upstream
# Please check * https://dep-team.pages.debian.net/deps/dep12/
# * https://wiki.debian.org/UpstreamMetadata
Reference:
Author: <please use full names and separate multiple author by the keyword "and">
Title:
Journal:
Year:
Volume:
Number:
Pages:
DOI:
PMID:
URL:
eprint:

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
# You must remove unused comment lines for the released package.
version=3

9
tests/control Normal file
View File

@ -0,0 +1,9 @@
#
# DEP-8: autopkgtest - automatic as-installed package testing
# Please check * https://dep-team.pages.debian.net/deps/dep8/
# * /usr/share/doc/autopkgtest
#
# !!! Please make sure to edit this to a valid test, otherwise build will fails
#
#Tests: testcode.sh
#Restrictions: allow-stderr, breaks-testbed, needs-internet, needs-root