blob: a01075d3724e7bbf82c0ea2fd58ce70550606251 (
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
|
# Maintainer: Fabien LEFEBVRE <contact@d1ceward.com>
pkgname=mint
pkgver=0.21.0
pkgrel=1
pkgdesc='A refreshing language for the front-end web'
arch=('x86_64')
url='https://github.com/mint-lang/mint'
license=('BSD')
source=("${url}/archive/refs/tags/${pkgver}.tar.gz"
"baked_file_system.patch")
sha256sums=('871e7a5eeaa0b5e6c29c7466c1fac78c8a3f51daa756ab77649099a4a52e3bef'
'2d5b204294fc56b91dfe6407d161309f866259e680e09dadb3737d46cb03687a')
makedepends=('shards')
conflicts=('mint-bin')
build() {
cd "${pkgname}-${pkgver}"
# Get dependencies
PATH="/usr/bin" shards
# Fix issue on baked_file_system crystal dependencies with building in hidden directory
patch -p1 -i "${srcdir}/baked_file_system.patch"
# Build binary
PATH="/usr/bin" shards build --progress --release --no-debug
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|