blob: a588078e405958013f14ce1a7fe5992fb3723a89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=lean4-bin
pkgver=4.16.0
pkgrel=1
pkgdesc="An interactive theorem prover"
arch=('i686' 'x86_64' 'aarch64')
url="https://leanprover.github.io/"
license=('Apache-2.0')
optdepends=('bash')
provides=("lean4=$pkgver")
conflicts=('lean4')
options=('staticlibs')
source_i686=("https://github.com/leanprover/lean4/releases/download/v$pkgver/lean-$pkgver-linux_x86.tar.zst")
source_x86_64=("https://github.com/leanprover/lean4/releases/download/v$pkgver/lean-$pkgver-linux.tar.zst")
source_aarch64=("https://github.com/leanprover/lean4/releases/download/v$pkgver/lean-$pkgver-linux_aarch64.tar.zst")
sha256sums_i686=('68c78f18fb86388538bb60cbe5ae546e297aa14f36b6afbc68c21029672aa6fb')
sha256sums_x86_64=('cdd31f1064783fff163be53e285722102f16767e65e6fb7f7cb1c232514e0c3a')
sha256sums_aarch64=('0d2fb0488e8a5d679d383d1c846aff5a6d57b27b0ec9d5d9b1396226f2311f87')
package() {
if [ "$CARCH" = "x86_64" ]; then
cd "lean-$pkgver-linux"
elif [ "$CARCH" = "i686" ]; then
cd "lean-$pkgver-linux_x86"
else
cd "lean-$pkgver-linux_$CARCH"
fi
install -dm755 "$pkgdir/opt/lean4"
mv * "$pkgdir/opt/lean4"
install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/lean4/bin"/{lake,lean,leanc,leanmake} "$pkgdir/usr/bin"
install -Dm644 "$pkgdir/opt/lean4/LICENSES" -t "$pkgdir/usr/share/licenses/lean4"
}
|