[arch-commits] Commit in mold/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Sun Jan 23 16:56:37 UTC 2022
Date: Sunday, January 23, 2022 @ 16:56:36
Author: grawlinson
Revision: 1113716
archrelease: copy trunk to community-x86_64
Added:
mold/repos/community-x86_64/PKGBUILD
(from rev 1113715, mold/trunk/PKGBUILD)
Deleted:
mold/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 126 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 66 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-23 16:55:54 UTC (rev 1113715)
+++ PKGBUILD 2022-01-23 16:56:36 UTC (rev 1113716)
@@ -1,60 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Adrian Perez de Castro <aperez at igalia.com>
-
-pkgname=mold
-pkgver=1.0.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')
-makedepends=('clang' 'xxhash')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('cc03a7db395362b97879c28942397d4443d12b72e067b6f979b1ece4d8aab06154b4c1a0f4c57d6ac505bcd4f892bf9a355ad281d628d4d544d8f70edaf34b72')
-b2sums=('0e40860d3c0a221d368c94b9f58c20b245ee61de6f9eb6d1454ed3b6f103933c79ddd7358049e2aacf497221232d952c2117ba2b3371cbe37fb8ad4ae42461c2')
-
-prepare() {
- cd "$pkgname-$pkgver"
-
- sed -i "s/libexec/lib/" Makefile
-}
-
-build() {
- make \
- -C "$pkgname-$pkgver" \
- PREFIX=/usr \
- LTO=1 \
- SYSTEM_MIMALLOC=1 \
- SYSTEM_TBB=1 \
- SYSTEM_XXHASH=1
-}
-
-check() {
- cd "$pkgname-$pkgver"
-
- # temporarily remove failing tests
- for failing_test in defsym exception func-addr ctors-dtors reloc-zero; 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-$pkgver" \
- 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 1113715, mold/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-23 16:56:36 UTC (rev 1113716)
@@ -0,0 +1,66 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Adrian Perez de Castro <aperez at igalia.com>
+
+pkgname=mold
+pkgver=1.0.2
+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' 'clang')
+_commit='6fb64656b92553ae47a9b058da8c93083be779d5'
+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
+}
More information about the arch-commits
mailing list