summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPeter Jung2024-05-05 09:46:53 +0200
committerPeter Jung2024-05-05 09:46:53 +0200
commitf3c608662d5c34cafe649a225a79b47b9ee1f344 (patch)
tree5ea03f482bde9598292a98038b54c6ace53e22fa /PKGBUILD
parent76438d7d4784433011ce38af16f791af7f963d29 (diff)
downloadaur-f3c608662d5c34cafe649a225a79b47b9ee1f344.tar.gz
mold-git: Sync && fix pkgver
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 15 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7f3f59e0324d..8618cb4a95da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,42 @@
# Maintainer: Peter Jung ptr1337 <admin@ptr1337.dev>
pkgname=mold-git
-pkgver=v2.1.0_109_g9e09e74d
+pkgver=2.31.0.r12.g5ec3d2dc
pkgrel=1
-pkgdesc="A Modern Linker"
-arch=(x86_64)
-url="https://github.com/rui314/mold"
-license=("AGPL3")
+pkgdesc='A Modern Linker'
+arch=('x86_64')
+url='https://github.com/rui314/mold'
+license=('MIT')
# xxhash is bundled
-depends=('gcc-libs' 'mimalloc' 'openssl' 'zlib' 'tbb')
+depends=('glibc' 'gcc-libs' 'mimalloc' 'zlib' 'tbb' 'zstd')
makedepends=('git' 'python' 'cmake' 'mold')
checkdepends=('clang' 'libdwarf')
source=("mold::git+https://github.com/rui314/mold")
-sha256sums=('SKIP')
+b2sums=('SKIP')
provides=("mold=$pkgver")
conflicts=("mold")
_reponame="mold"
pkgver() {
cd "$_reponame"
- git describe --long --tags | sed "s/-/_/g"
+ git describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
-
build() {
cmake \
-S "$_reponame" \
-B build \
- -DCMAKE_BUILD_TYPE='None' \
- -DCMAKE_INSTALL_PREFIX='/usr' \
- -DCMAKE_INSTALL_LIBEXECDIR='lib' \
- -DMOLD_USE_SYSTEM_MIMALLOC=ON \
- -DMOLD_USE_SYSTEM_TBB=ON \
- -DMOLD_USE_MOLD=ON \
- -DMOLD_LTO=ON
+ -D CMAKE_BUILD_TYPE='None' \
+ -D CMAKE_INSTALL_PREFIX='/usr' \
+ -D CMAKE_INSTALL_LIBEXECDIR='lib' \
+ -D MOLD_USE_SYSTEM_MIMALLOC=ON \
+ -D MOLD_USE_SYSTEM_TBB=ON \
+ -D MOLD_LTO=ON \
+ -D MOLD_USE_MOLD=ON
cmake --build build
}
-
check() {
ctest --test-dir build --output-on-failure
}