[arch-commits] Commit in mold/repos/community-x86_64 (PKGBUILD PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Wed Feb 23 02:17:44 UTC 2022


    Date: Wednesday, February 23, 2022 @ 02:17:43
  Author: grawlinson
Revision: 1136212

archrelease: copy trunk to community-x86_64

Added:
  mold/repos/community-x86_64/PKGBUILD
    (from rev 1136211, mold/trunk/PKGBUILD)
Deleted:
  mold/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  133 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 66 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-23 02:16:49 UTC (rev 1136211)
+++ PKGBUILD	2022-02-23 02:17:43 UTC (rev 1136212)
@@ -1,67 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Adrian Perez de Castro <aperez at igalia.com>
-
-pkgname=mold
-pkgver=1.1
-pkgrel=1
-pkgdesc='A Modern Linker'
-arch=('x86_64')
-url="https://github.com/rui314/mold"
-license=('AGPL3')
-depends=('gcc-libs' 'mimalloc' 'openssl' 'zlib' 'tbb' 'xxhash')
-makedepends=('git')
-checkdepends=('clang')
-_commit='89612b709638b90c8a044e2f96f47d28054ba789'
-source=("$pkgname::git+$url.git#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
-
-prepare() {
-  cd "$pkgname"
-
-  sed -i "s/libexec/lib/" Makefile
-}
-
-build() {
-  make \
-    -C "$pkgname" \
-    PREFIX=/usr \
-    LTO=1 \
-    SYSTEM_MIMALLOC=1 \
-    SYSTEM_TBB=1 \
-    SYSTEM_XXHASH=1
-}
-
-check() {
-  cd "$pkgname"
-
-  # temporarily remove failing tests
-  for failing_test in exception; do
-    rm -vf "test/elf/$failing_test.sh"
-  done
-
-  make \
-    PREFIX=/usr \
-    LTO=1 \
-    SYSTEM_MIMALLOC=1 \
-    SYSTEM_TBB=1 \
-    SYSTEM_XXHASH=1 \
-    check
-}
-
-package() {
-  make \
-    -C "$pkgname" \
-    PREFIX=/usr \
-    LTO=1 \
-    SYSTEM_MIMALLOC=1 \
-    SYSTEM_TBB=1 \
-    SYSTEM_XXHASH=1 \
-    DESTDIR="$pkgdir" \
-    install
-}

Copied: mold/repos/community-x86_64/PKGBUILD (from rev 1136211, mold/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-23 02:17:43 UTC (rev 1136212)
@@ -0,0 +1,66 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Adrian Perez de Castro <aperez at igalia.com>
+
+pkgname=mold
+pkgver=1.1
+pkgrel=2
+pkgdesc='A Modern Linker'
+arch=('x86_64')
+url="https://github.com/rui314/mold"
+license=('AGPL3')
+depends=('gcc-libs' 'mimalloc' 'openssl' 'zlib' 'tbb') # xxhash is bundled
+makedepends=('git')
+checkdepends=('clang')
+options=('debug')
+_commit='89612b709638b90c8a044e2f96f47d28054ba789'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # use /usr/lib instead of /usr/libexec
+  sed -i "s/libexec/lib/" Makefile
+}
+
+build() {
+  make \
+    -C "$pkgname" \
+    PREFIX=/usr \
+    LTO=1 \
+    SYSTEM_MIMALLOC=1 \
+    SYSTEM_TBB=1
+}
+
+check() {
+  cd "$pkgname"
+
+  # temporarily remove failing tests
+  for failing_test in exception; do
+    rm -vf "test/elf/$failing_test.sh"
+  done
+
+  make \
+    PREFIX=/usr \
+    LTO=1 \
+    SYSTEM_MIMALLOC=1 \
+    SYSTEM_TBB=1 \
+    check
+}
+
+package() {
+  make \
+    -C "$pkgname" \
+    PREFIX=/usr \
+    LTO=1 \
+    SYSTEM_MIMALLOC=1 \
+    SYSTEM_TBB=1 \
+    DESTDIR="$pkgdir" \
+    install
+}



More information about the arch-commits mailing list