blob: c6ae28b78990c5cab6832fe2d7ce543fa2044d0c (
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: Nathan Ringo <remexre@gmail.com>
pkgname=oftb-git
pkgver=git20171024
pkgrel=1
pkgdesc="The OftLisp bootstrapper."
arch=(x86_64)
url="https://github.com/oftlisp/oftlisp-rs.git"
license=('MIT')
groups=()
depends=("oftlisp-std")
makedepends=('cargo' 'git' 'rust')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('oftlisp-rs::git+https://github.com/oftlisp/oftlisp-rs.git#branch=master')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/oftlisp-rs"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/oftlisp-rs/${pkgname%-git}"
cargo build --release --features rustyline
}
check() {
cd "$srcdir/oftlisp-rs/${pkgname%-git}"
cargo test --all
}
package() {
cd "$srcdir/oftlisp-rs"
install -Dt "$pkgdir/usr/bin" "target/release/${pkgname%-git}"
}
|