Package Details: lean-cli-git r317.2799385-1

Git Clone URL: https://aur.archlinux.org/lean-cli-git.git (read-only, click to copy)
Package Base: lean-cli-git
Description: LeanCloud command line tool
Upstream URL: https://leancloud.cn
Licenses: Apache
Conflicts: lean-cli
Provides: lean-cli
Submitter: asaka
Maintainer: asaka
Last Packager: asaka
Votes: 1
Popularity: 0.000000
First Submitted: 2017-04-11 15:45 (UTC)
Last Updated: 2017-04-11 15:45 (UTC)

Latest Comments

ZhangHua commented on 2021-10-03 08:20 (UTC)

I have a newer PKGBUILD and I think it works better, because I will meet error with original version.

# Maintainer: asaka <aisk1988@gmail.com>
pkgname=lean-cli-git
pkgver=r695.1f43082
pkgrel=1
pkgdesc="LeanCloud command line tool"
arch=('i686' 'x86_64')
url="https://leancloud.cn"
license=('Apache')
groups=()
depends=()
makedepends=('git' 'go')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/leancloud/lean-cli')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
        export GOPATH="$srcdir/go"
    cd "$srcdir/${pkgname%-git}/lean"
    go build
}

check() {
    cd "$srcdir/${pkgname%-git}/lean"
        go test
}

package() {
    cd "$srcdir/${pkgname%-git}/lean"
        install -Dm755 "lean" "$pkgdir/usr/bin/lean"
    cd "$srcdir"
        install -Dm644 "${pkgname%-git}/LICENSE.txt" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE.txt"
}