Update package name to 'ly', set version to 1.0.2git, and adjust rules for building and installing
Some checks failed
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 58s

This commit is contained in:
ferreo 2024-12-02 18:54:18 +00:00
parent e667ccfad3
commit bae0fa9d4d
7 changed files with 41 additions and 80 deletions

View File

@ -1 +1 @@
1 2

4
debian/changelog vendored
View File

@ -1,5 +1,5 @@
upstream-name (1.0-101pika1) pika; urgency=medium ly (1.0.2git-101pika1) pika; urgency=medium
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP> * Initial release.
-- ferreo <harderthanfire@gmail.com> Wed, 18 Jan 2023 21:48:14 +0000 -- ferreo <harderthanfire@gmail.com> Wed, 18 Jan 2023 21:48:14 +0000

19
debian/control vendored
View File

@ -1,19 +1,14 @@
Source: upstream-name Source: ly
Section: admin Section: admin
Priority: optional Priority: optional
Maintainer: name <email> Maintainer: ferreo <harderthanfire@gmail.com>
Standards-Version: 4.6.1 Standards-Version: 4.6.1
Build-Depends: debhelper-compat (= 13) Build-Depends: debhelper-compat (= 13), zig, build-essential, libpam0g-dev, libxcb-xkb-dev
Rules-Requires-Root: no Rules-Requires-Root: no
Package: pkgname1 Package: ly
Architecture: linux-any Architecture: linux-any
# Delete any of these lines if un-used Depends: ${misc:Depends}, ${shlibs:Depends}
Depends: ${misc:Depends}, depends Provides: ly
Recommends: high priority optdepends
Conflicts: conflicts
Suggests: low priority optdepends
Breaks: also conflicts!?
Provides: provides
# #
Description: pkgdesc Description: display manager

13
debian/copyright vendored
View File

@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

2
debian/ly.install vendored Normal file
View File

@ -0,0 +1,2 @@
usr
etc

71
debian/rules vendored
View File

@ -1,67 +1,18 @@
#! /usr/bin/make -f #! /usr/bin/make -f
## See debhelper(7) (uncomment to enable).
## Output every command that modifies files on the build system.
export DH_VERBOSE = 1 export DH_VERBOSE = 1
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch) export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
## === the chain of command ===
## debuild runs a chain of dh functions in the following order:
## dh_testdir
## dh_clean
## dh_auto_clean
## dh_update_autotools_config
## dh_autoreconf
## dh_auto_configure
## dh_prep
## dh_build
## dh_auto_build
## dh_install
## dh_auto_install
## dh_installdocs
## dh_installchangelogs
## dh_perl
## dh_link
## dh_strip_nondeterminism
## dh_compress
## dh_fixperms
## dh_missing
## dh_dwz
## dh_strip
## dh_makeshlibs
## dh_shlibdeps
## dh_installdeb
## dh_gencontrol
## but you are most likely to only need to override the following:
## dh_clean
## dh_auto_configure
## dh_build
## dh_install
## === End end of region ===
## === overriding dh functions ===
## by default all dh functions will run a specific command based on the build system selected by "dh $@"
## if you have a makefile that does everything you need this is fine,
## but most likely you have no MakeFile and you want to add your own commands
## Note : overrides must be places above %:
## So here's a few examples:
## overriding dh_clean to make it not delete rust vendor files:
#override_dh_clean:
# echo "disabled"
## overriding dh_auto_configure to add custom configs:
#override_dh_auto_configure:
# $(srcdir)/configure -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_DATADIR=/usr/share -DCMAKE_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu -DBUILD_PLUGIN=OFF
## overriding dh_install to install files to a package:
#override_dh_auto_configure:
# mkdir -p debian/pikman/usr/bin
# cp pikman debian/pikman/usr/bin/
## === End end of region ===
## This here will start the build:
%: %:
dh $@ dh $@
# override_dh_install:
# dh_install
# mkdir -p debian/pikafetch/usr/bin/
# cp -vf pikafetch debian/pikafetch/usr/bin/
# chmod 755 debian/pikafetch/usr/bin/pikafetch
# chmod +x debian/pikafetch/usr/bin/pikafetch
override_dh_auto_build:
zig build -Dcpu=x86_64_v3 -Doptimize=ReleaseFast -Ddest_directory=debian/pikafetch/ installsystemd

10
main.sh
View File

@ -6,15 +6,15 @@ set -e
echo "$PIKA_BUILD_ARCH" > pika-build-arch echo "$PIKA_BUILD_ARCH" > pika-build-arch
VERSION="1.0" VERSION="1.0.2git"
# Clone Upstream # Clone Upstream
mkdir -p ./src-pkg-name git clone --recurse-submodules https://github.com/fairyglade/ly.git
cp -rvf ./debian ./src-pkg-name/ cp -rvf ./debian ./ly/
cd ./src-pkg-name/ cd ./ly/
# Get build deps # Get build deps
LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error" LOGNAME=root dh_make --createorig -y -l -p ly_"$VERSION" || echo "dh-make: Ignoring Last Error"
apt-get build-dep ./ -y apt-get build-dep ./ -y
# Build package # Build package