Initial packaging

This commit is contained in:
ferreo 2024-11-29 19:53:46 +00:00
parent 62aa0a35bf
commit 21aae90ea3
7 changed files with 2831 additions and 83 deletions

6
debian/changelog vendored
View File

@ -1,5 +1,5 @@
upstream-name (1.0-101pika1) pika; urgency=medium zig (0.13.0-1) unstable; urgency=medium
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP> * Initial packaging (Closes: #995670).
-- ferreo <harderthanfire@gmail.com> Wed, 18 Jan 2023 21:48:14 +0000 -- Nick Hastings <nicholaschastings@gmail.com> Fri, 22 Dec 2023 09:48:35 +0900

1
debian/clean vendored Normal file
View File

@ -0,0 +1 @@
zig-cache/

42
debian/control vendored
View File

@ -1,19 +1,29 @@
Source: upstream-name Source: zig
Section: admin Section: devel
Priority: optional Priority: optional
Maintainer: name <email> Maintainer: Nick Hastings <nicholaschastings@gmail.com>
Standards-Version: 4.6.1 Build-Depends: cmake, debhelper-compat (= 13), gcc (>= 7.0.0), zlib1g-dev, chrpath,
Build-Depends: debhelper-compat (= 13) clang (>= 6.0.0),
llvm-19-dev,
libclang-19-dev,
liblld-19-dev,
Standards-Version: 4.6.1.0
Rules-Requires-Root: no Rules-Requires-Root: no
Vcs-Browser: https://salsa.debian.org/zig-team/zig
Vcs-Git: https://salsa.debian.org/zig-team/zig.git
Homepage: https://github.com/ziglang/zig
Package: pkgname1 Package: zig
Architecture: linux-any Architecture: any
# Delete any of these lines if un-used Multi-Arch: foreign
Depends: ${misc:Depends}, depends Depends: ${misc:Depends}, ${shlibs:Depends}
Recommends: high priority optdepends Description: Imperative, general-purpose, statically typed, system programming language
Conflicts: conflicts The ultimate goal of the Zig project is to serve users. As a
Suggests: low priority optdepends first-order effect, this means users of the compiler, helping
Breaks: also conflicts!? programmers to write better software. Even more important, however,
Provides: provides are the end-users. Zig is intended to be used to help end-users
# accomplish their goals. Zig should be used to empower end-users,
Description: pkgdesc never to exploit them financially, or to limit their freedom to
interact with hardware or software in any way.
.
This package provides the zig compiler.

2772
debian/copyright vendored

File diff suppressed because it is too large Load Diff

84
debian/rules vendored
View File

@ -1,67 +1,23 @@
#! /usr/bin/make -f #!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
## See debhelper(7) (uncomment to enable). # Can't just run "zig build test" because some tests are know to fail
## Output every command that modifies files on the build system. TESTS = fmt cases behavior compiler-rt universal-libc compare-output standalone stack-traces cli translate-c run-translated-c std
export DH_VERBOSE = 1
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_auto_clean:
dh_auto_clean
\rm -rf zig-cache
override_dh_install:
dh_install
chrpath --delete debian/zig/usr/bin/zig
#override_dh_auto_test:
# XDG_CACHE_HOME= ./obj-$(DEB_HOST_MULTIARCH)/stage3/bin/zig build test
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
$(foreach t,$(TESTS),XDG_CACHE_HOME= ./obj-$(DEB_HOST_MULTIARCH)/stage3/bin/zig build test-$(t) || echo "Warning test-${t} failed" ;)
endif

6
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,6 @@
Bug-Database: https://github.com/ziglang/zig/issues
Bug-Submit: https://github.com/ziglang/zig/issues/new
Documentation: https://ziglang.org/documentation/master
FAQ: https://github.com/ziglang/zig/wiki/FAQ
Repository: https://github.com/ziglang/zig.git
Repository-Browse: https://github.com/ziglang/zig

3
debian/watch vendored Normal file
View File

@ -0,0 +1,3 @@
version=4
opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/zig-$1\.tar\.gz/ \
https://github.com/ziglang/zig/tags .*/(\d\S+)\.tar\.gz