Date: Friday, March 10, 2023 @ 18:44:57
Author: orhun
Revision: 1417514
archrelease: copy trunk to community-x86_64
Added:
zls/repos/community-x86_64/PKGBUILD
(from rev 1417510, zls/trunk/PKGBUILD)
zls/repos/community-x86_64/pie-opt.patch
(from rev 1417510, zls/trunk/pie-opt.patch)
zls/repos/community-x86_64/trunk/
Deleted:
zls/repos/community-x86_64/PKGBUILD
zls/repos/community-x86_64/pie-opt.patch
zls/repos/community-x86_64/trunk/
---------------+
PKGBUILD | 119 ++++++++++++++++++++++++++++----------------------------
pie-opt.patch | 66 +++++++++++++++----------------
2 files changed, 93 insertions(+), 92 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-10 18:44:55 UTC (rev 1417513)
+++ PKGBUILD 2023-03-10 18:44:57 UTC (rev 1417514)
@@ -1,59 +0,0 @@
-# Maintainer: Orhun Parmaksız <[email protected]>
-# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
-
-pkgname=zls
-pkgver=0.10.0
-_gitcommit=7ef224467ab2f3179058981740e942977892e7b9
-pkgrel=2
-pkgdesc="A language server for Zig"
-arch=('x86_64')
-url="https://github.com/zigtools/zls"
-license=('MIT')
-makedepends=('zig' 'git')
-source=(
- "${pkgname}::git+$url#commit=$_gitcommit"
- "${pkgname}-known-folders::git+https://github.com/ziglibs/known-folders"
- "${pkgname}-tracy::git+https://github.com/wolfpld/tracy"
- "pie-opt.patch"
-)
-sha256sums=('SKIP'
- 'SKIP'
- 'SKIP'
- 'c8241efa5da3dc263b655acc5ae76d56577802693eb62c0cfb0e0ed8b88af08f')
-
-prepare() {
- cd "${pkgname}"
- patch -Np1 -i "../pie-opt.patch"
- git submodule init
- git config submodule."src/known-folders".url
"${srcdir}/${pkgname}"-known-folders
- git config submodule."src/tracy".url "${srcdir}/${pkgname}"-tracy
- git -c protocol.file.allow=always submodule update --init --recursive
-}
-
-build() {
- cd "$pkgname"
- DESTDIR="build" zig build \
- --prefix /usr \
- --search-prefix /usr \
- -Dtarget=native-linux.5.15-gnu \
- -Dcpu=baseline \
- -Drelease-safe \
- -Dpie=true
-}
-
-check() {
- cd "$pkgname"
- zig build test \
- -Dtarget=native-linux.5.15-gnu \
- -Dcpu=baseline \
- -Drelease-safe
-}
-
-package() {
- cd "$pkgname"
- cp -a build/* "$pkgdir"
- install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
- install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-}
-
-# vim: ts=2 sw=2 et:
Copied: zls/repos/community-x86_64/PKGBUILD (from rev 1417510,
zls/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-10 18:44:57 UTC (rev 1417514)
@@ -0,0 +1,60 @@
+# Maintainer: Orhun Parmaksız <[email protected]>
+# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=zls
+pkgver=0.10.0
+_gitcommit=7ef224467ab2f3179058981740e942977892e7b9
+pkgrel=3
+pkgdesc="A language server for Zig"
+arch=('x86_64')
+url="https://github.com/zigtools/zls"
+license=('MIT')
+depends=('zig')
+makedepends=('git')
+source=(
+ "${pkgname}::git+$url#commit=$_gitcommit"
+ "${pkgname}-known-folders::git+https://github.com/ziglibs/known-folders"
+ "${pkgname}-tracy::git+https://github.com/wolfpld/tracy"
+ "pie-opt.patch"
+)
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'c8241efa5da3dc263b655acc5ae76d56577802693eb62c0cfb0e0ed8b88af08f')
+
+prepare() {
+ cd "${pkgname}"
+ patch -Np1 -i "../pie-opt.patch"
+ git submodule init
+ git config submodule."src/known-folders".url
"${srcdir}/${pkgname}"-known-folders
+ git config submodule."src/tracy".url "${srcdir}/${pkgname}"-tracy
+ git -c protocol.file.allow=always submodule update --init --recursive
+}
+
+build() {
+ cd "$pkgname"
+ DESTDIR="build" zig build \
+ --prefix /usr \
+ --search-prefix /usr \
+ -Dtarget=native-linux.5.15-gnu \
+ -Dcpu=baseline \
+ -Drelease-safe \
+ -Dpie=true
+}
+
+check() {
+ cd "$pkgname"
+ zig build test \
+ -Dtarget=native-linux.5.15-gnu \
+ -Dcpu=baseline \
+ -Drelease-safe
+}
+
+package() {
+ cd "$pkgname"
+ cp -a build/* "$pkgdir"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:
Deleted: pie-opt.patch
===================================================================
--- pie-opt.patch 2023-03-10 18:44:55 UTC (rev 1417513)
+++ pie-opt.patch 2023-03-10 18:44:57 UTC (rev 1417514)
@@ -1,33 +0,0 @@
-diff --git a/build.zig b/build.zig
-index 1d33de7..f19c880 100644
---- a/build.zig
-+++ b/build.zig
-@@ -17,6 +17,7 @@ pub fn build(b: *std.build.Builder) !void {
- const exe_options = b.addOptions();
- exe.addOptions("build_options", exe_options);
-
-+ const pie = b.option(bool, "pie", "Build a Position Independent
Executable") orelse false;
- const enable_tracy = b.option(bool, "enable_tracy", "Whether tracy should
be enabled.") orelse false;
- const coverage = b.option(bool, "generate_coverage", "Generate coverage
data with kcov") orelse false;
- const coverage_output_dir = b.option([]const u8, "coverage_output_dir",
"Output directory for coverage data") orelse b.pathJoin(&.{b.install_prefix,
"kcov"});
-@@ -33,6 +34,12 @@ pub fn build(b: *std.build.Builder) !void {
- b.option(std.log.Level, "log_level", "The Log Level to be used.")
orelse .info,
- );
-
-+ exe_options.addOption(
-+ bool,
-+ "pie",
-+ pie,
-+ );
-+
- exe_options.addOption(
- bool,
- "enable_tracy",
-@@ -115,6 +122,7 @@ pub fn build(b: *std.build.Builder) !void {
-
- exe.setTarget(target);
- exe.setBuildMode(mode);
-+ exe.pie = pie;
- exe.install();
-
- const test_step = b.step("test", "Run all the tests");
Copied: zls/repos/community-x86_64/pie-opt.patch (from rev 1417510,
zls/trunk/pie-opt.patch)
===================================================================
--- pie-opt.patch (rev 0)
+++ pie-opt.patch 2023-03-10 18:44:57 UTC (rev 1417514)
@@ -0,0 +1,33 @@
+diff --git a/build.zig b/build.zig
+index 1d33de7..f19c880 100644
+--- a/build.zig
++++ b/build.zig
+@@ -17,6 +17,7 @@ pub fn build(b: *std.build.Builder) !void {
+ const exe_options = b.addOptions();
+ exe.addOptions("build_options", exe_options);
+
++ const pie = b.option(bool, "pie", "Build a Position Independent
Executable") orelse false;
+ const enable_tracy = b.option(bool, "enable_tracy", "Whether tracy should
be enabled.") orelse false;
+ const coverage = b.option(bool, "generate_coverage", "Generate coverage
data with kcov") orelse false;
+ const coverage_output_dir = b.option([]const u8, "coverage_output_dir",
"Output directory for coverage data") orelse b.pathJoin(&.{b.install_prefix,
"kcov"});
+@@ -33,6 +34,12 @@ pub fn build(b: *std.build.Builder) !void {
+ b.option(std.log.Level, "log_level", "The Log Level to be used.")
orelse .info,
+ );
+
++ exe_options.addOption(
++ bool,
++ "pie",
++ pie,
++ );
++
+ exe_options.addOption(
+ bool,
+ "enable_tracy",
+@@ -115,6 +122,7 @@ pub fn build(b: *std.build.Builder) !void {
+
+ exe.setTarget(target);
+ exe.setBuildMode(mode);
++ exe.pie = pie;
+ exe.install();
+
+ const test_step = b.step("test", "Run all the tests");