blob: c7e7e690126d2c8939367ce579a1f8caf5189b71 (
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
|
# Maintainer: Matej Grabovsky <matej.grabovsky at gmail>
pkgname=lean-git
_pkgver=0.2.0
pkgver="${_pkgver}.r5708.0cda3f7"
pkgrel=3
pkgdesc='Lean Theorem Prover'
arch=('x86_64' 'i386')
url="http://leanprover.github.io/"
license=('Apache')
depends=('gmp' 'mpfr' 'lua>=5.2')
makedepends=('git' 'cmake' 'python' 'gperftools')
optdepends=('emacs: emacs mode')
conflicts=('lean-bin')
source=("$pkgname::git+https://github.com/leanprover/lean.git")
md5sums=(SKIP)
pkgver() {
cd "$srcdir/$pkgname"
printf "${_pkgver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git-describe --always)"
}
build() {
cd "$pkgname"
cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr src/
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: set et ts=2 sw=2:
|