aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dc2c3739be76899995a17287dedd4d2fc577a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Faustino Aguilar <faustinoaq.github.io>
pkgname=amber
pkgver=stable
pkgrel=1
pkgdesc="An open source efficient, cohesive and fun web framework for the Crystal language"
arch=(i686 x86_64)
url='https://github.com/amberframework/amber'
license=(MIT)
depends=('crystal' 'shards' 'sqlite')
source=("https://github.com/amberframework/amber/archive/$pkgver.zip")
sha256sums=('15dafc38a5cfef225572c06b40ff384f1564fbb7e87dd9c7907acd8b30f4b3ec')

build() {
  cd "amber-$pkgver"
  shards --production
  make build
}

package() {
  cd "amber-$pkgver"
  install -Dm755 bin/amber "$pkgdir/usr/bin/amber"
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/amber/LICENSE
}