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

George Rawlinson grawlinson at gemini.archlinux.org
Fri Apr 29 07:54:12 UTC 2022


    Date: Friday, April 29, 2022 @ 07:54:12
  Author: grawlinson
Revision: 1191777

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |  135 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 68 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-29 07:53:28 UTC (rev 1191776)
+++ PKGBUILD	2022-04-29 07:54:12 UTC (rev 1191777)
@@ -1,67 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Adrian Perez de Castro <aperez at igalia.com>
-
-pkgname=mold
-pkgver=1.2.0
-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 is bundled
-makedepends=('git')
-checkdepends=('clang' 'libdwarf')
-options=('debug')
-_commit='f86868cb389d9d45fab99e200f51f2682a4f5956'
-source=("$pkgname::git+$url.git#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  # current commit has multiple tags (v1.2 & v1.2.0)
-  git describe --tags --exclude=v1.2 | 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
-}

Copied: mold/repos/community-x86_64/PKGBUILD (from rev 1191776, mold/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-29 07:54:12 UTC (rev 1191777)
@@ -0,0 +1,68 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Adrian Perez de Castro <aperez at igalia.com>
+
+pkgname=mold
+pkgver=1.2.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 is bundled
+makedepends=('git')
+checkdepends=('clang' 'libdwarf')
+options=('debug')
+_commit='c8d8f86a52084c96e2663d9f692c51e98c04cc2f'
+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
+
+  ln -vsf /usr/bin/mold "$pkgdir/usr/lib/mold/ld"
+}



More information about the arch-commits mailing list