blob: da5e277e89f81957ef169589fa0160d8dd5b3f18 (
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: Fabien LEFEBVRE <contact@d1ceward.com>
pkgname=lucky-git
pkgver=r716.91c633e
pkgrel=1
pkgdesc='A Crystal command-line tool for generating new Lucky Web Applications'
arch=('x86_64')
url='https://github.com/luckyframework/lucky_cli'
license=('MIT')
depends=('crystal'
'shards')
makedepends=('git')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
provides=('lucky')
conflicts=('lucky')
pkgver() {
cd ${pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${pkgname}
# Install dependencies
PATH="/usr/bin" shards install
# Build lucky cli
PATH="/usr/bin" shards build --progress --release --no-debug
}
package() {
cd ${pkgname}
install -Dm755 "bin/lucky" "${pkgdir}/usr/bin/lucky"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|