blob: 9c994c9a7b668ac5a5a4614a09c08c233fcfca76 (
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
|
# Maintainer: Pavel Poronko <warzgibz at gmail dot com>
pkgname='marten'
pkgver='0.5.1'
pkgrel=1
pkgdesc='A Crystal command-line tool for working with Marten web framework applications'
arch=("x86_64")
url='https://github.com/martenframework/marten'
license=('MIT')
depends=('crystal' 'shards')
makedepends=('git')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('18338c737c5a552fbea2f1a5734e78271ead507b2aa0258b2fb293255e7dde57')
provides=('marten')
build() {
cd "marten-${pkgver}"
# Install dependencies
PATH="/usr/bin" shards install
# Build marten cli
PATH="/usr/bin" crystal build src/marten_cli.cr -o bin/${pkgname} --progress --release --no-debug
}
package() {
cd "marten-${pkgver}"
install -Dm755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|