summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 337cf1e2575fe459a59fc5a271af2d2ce2464454 (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
# Maintainer: novica <nnovica@gmail.com>

pkgname=r-air-bin
pkgver=0.6.0
pkgrel=1
pkgdesc="Air is an R formatter and language server, written in Rust.
 from Posit"
arch=('x86_64')
url="https://github.com/posit-dev/air"
license=('MIT')
depends=('gcc-libs' 'glibc')
options=('!debug')
provides_x86_64=("r-air=${pkgver}")
source_x86_64=("https://github.com/posit-dev/air/releases/download/${pkgver}/air-$CARCH-unknown-linux-gnu.tar.gz"
                "https://raw.githubusercontent.com/posit-dev/air/refs/tags/${pkgver}/LICENSE")
sha256sums_x86_64=('dbb23ea9350d1b477b29139a2caac8c86dd77392ef6eb1100aa0290140b9c136'
                    '19713ea69a4231105033c381dc2145148d26eab51e0b7e458ef4e775db531863')



package() {
    cd "$srcdir"

    # Move the binary from the temporary install directory to the final location
    install -Dm755 "$srcdir/air-$CARCH-unknown-linux-gnu/air" "$pkgdir/usr/bin/r-air"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}