Skip to content

Commit d18ad0d

Browse files
committed
[julia-git-clang_jll-src] Make clang_jll arch dependent
1 parent 1dd8643 commit d18ad0d

File tree

7 files changed

+73
-4
lines changed

7 files changed

+73
-4
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
pkgname=julia-git-clang_jll-src
2+
pkgver=19.1.1+1
3+
_commit=8e175fbf95025f9cadd002aa9d0f3e3cc0a86825
4+
pkgrel=2
5+
pkgdesc="Clang_jll.jl"
6+
url="https://github.com/JuliaBinaryWrappers/Clang_jll.jl.git"
7+
arch=(aarch64 armv7h i686 x86_64)
8+
license=('MIT')
9+
makedepends=(git julia-pkg-scripts)
10+
depends=(julia-git clang)
11+
source=("git+https://github.com/JuliaBinaryWrappers/Clang_jll.jl.git#commit=$_commit"
12+
jll.toml)
13+
sha256sums=('41f22bda7e3f529f020e82b71a2cde5bf539d82c42eefc4df8e1899bcbd2970f'
14+
'beb5666225f8699fb0cee2f25608a249c29b0cad9a737b7faf64605d06d40535')
15+
16+
build() {
17+
cd Clang_jll.jl
18+
19+
julia /usr/lib/julia/julia-gen-jll.jl Clang_jll ../jll.toml
20+
}
21+
22+
package() {
23+
cd Clang_jll.jl
24+
25+
JULIA_INSTALL_SRCPKG=1 . /usr/lib/julia/julia-install-pkg.sh Clang_jll "${pkgdir}" "${pkgname}" julia-git
26+
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[[library]]
2+
name = "libclang"
3+
4+
[[library]]
5+
name = "libclang_cpp"
6+
file = "libclang-cpp"
7+
8+
[[binary]]
9+
name = "clang"
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env python3
2+
3+
from lilaclib import *
4+
5+
def pre_build():
6+
pkgver, commit = _G.newver.split('@')
7+
pkgver = pkgver.strip()
8+
commit = commit.strip()
9+
for line in edit_file('PKGBUILD'):
10+
if line.startswith('_commit='):
11+
line = f'_commit={commit}'
12+
print(line)
13+
update_pkgver_and_pkgrel(pkgver)
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
maintainers:
2+
- github: yuyichao
3+
4+
post_build: git_pkgbuild_commit
5+
6+
# For julia-pkg-scripts
7+
build_prefix: archlinuxcn-aarch64
8+
9+
repo_depends:
10+
- julia-git
11+
12+
update_on:
13+
- source: regex
14+
url: https://raw.githubusercontent.com/yuyichao/archcn-julia-pkgs/master/pkgs/Clang_jll/version
15+
regex: 'version: *([^ ]*@[^ ]*)'
16+
- source: alpm
17+
from_pattern: ^(\d+)\..*
18+
to_pattern: \1
19+
alpm: clang
20+
- source: manual
21+
manual: 1

alarmcn/julia-git-precompiled-packages/lilac.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ repo_depends:
3333
- spral
3434
- libisoband
3535

36+
- julia-git-clang_jll-src
3637
- julia-git-enzyme_jll-src
3738
- julia-git-intelopenmp_jll-src
3839
- julia-git-llvmextra_jll-src
@@ -43,6 +44,7 @@ repo_depends:
4344

4445
update_on_build:
4546
- pkgbase: julia-git
47+
- pkgbase: julia-git-clang_jll-src
4648
- pkgbase: julia-git-enzyme_jll-src
4749
- pkgbase: julia-git-intelopenmp_jll-src
4850
- pkgbase: julia-git-llvmextra_jll-src
@@ -229,8 +231,6 @@ update_on:
229231
alpm: julia-git-circulararrays-src
230232
- alias: alpm-lilac
231233
alpm: julia-git-clang-src
232-
- alias: alpm-lilac
233-
alpm: julia-git-clang_jll-src
234234
- alias: alpm-lilac
235235
alpm: julia-git-codecbase-src
236236
- alias: alpm-lilac

archlinuxcn/julia-git-clang_jll-src/PKGBUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _commit=8e175fbf95025f9cadd002aa9d0f3e3cc0a86825
44
pkgrel=2
55
pkgdesc="Clang_jll.jl"
66
url="https://github.com/JuliaBinaryWrappers/Clang_jll.jl.git"
7-
arch=('any')
7+
arch=(aarch64 armv7h i686 x86_64)
88
license=('MIT')
99
makedepends=(git julia-pkg-scripts)
1010
depends=(julia-git clang)

archlinuxcn/julia-git-clang_jll-src/lilac.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ update_on:
1616
to_pattern: \1
1717
alpm: clang
1818
- source: manual
19-
manual: 1
19+
manual: 2

0 commit comments

Comments
 (0)