diff options
author | Fabien LEFEBVRE | 2021-07-07 12:04:41 +0200 |
---|---|---|
committer | Fabien LEFEBVRE | 2021-07-07 12:04:41 +0200 |
commit | ce28add2ae28adfcb5dd8d34d62b4bc5f19bf441 (patch) | |
tree | 7a5d8112ddcd1297e16094537e9e5f10e77d5f67 /PKGBUILD | |
parent | 627786693e8c46c3b8536ec45b64aadf2c43dd42 (diff) | |
download | aur-ce28add2ae28adfcb5dd8d34d62b4bc5f19bf441.tar.gz |
upgpkg: mint 0.14.0-2
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 30 |
1 files changed, 21 insertions, 9 deletions
@@ -1,21 +1,33 @@ # Maintainer: Fabien LEFEBVRE <contact@d1ceward.com> -# Contributor: Faustino Aguilar <faustinoaq.github.io> pkgname=mint pkgver=0.14.0 -pkgrel=1 +pkgrel=2 pkgdesc='A refreshing language for the front-end web' arch=('x86_64') url='https://github.com/mint-lang/mint' license=('BSD') -source=("https://github.com/mint-lang/mint/releases/download/${pkgver}/mint-${pkgver}-linux" - "https://raw.githubusercontent.com/mint-lang/mint/master/LICENSE") -sha256sums=('3f40f3666b013fef6d42be0e50ed733ba72dac486ab3ccf1fd7b44b26cbc3ebe' - '6b4ecb1a9202a35540d0405ddd88439bb4644a127afc02ee26428ca5d5c0bd9f') -noextract=("mint-${pkgver}-linux" - "LICENSE") +source=("${url}/archive/refs/tags/${pkgver}.tar.gz" + "baked_file_system.patch") +sha256sums=('2ccfa50812b8d9f53ea2e66fb427d42730a8b22ce2831c208f5421fc8c4baf28' + 'b1ac390bed113437ba3eb1345bfa8730eb5474dc99133052a74ea137f1f246a5') + +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() { - install -Dm755 "mint-${pkgver}-linux" "${pkgdir}/usr/bin/mint" + cd "${pkgname}-${pkgver}" + + install -Dm755 "bin/mint" "${pkgdir}/usr/bin/mint" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/mint/LICENSE" } |