summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ff5ca18d924e4f69c81aff8a91b097835f0ac4e (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
# Maintainer: Docler <hello@docler.me>
# Maintainer: Mahdi Sarikhani <mahdisarikhani@outlook.com>

pkgname=fvm-bin
pkgver=3.2.1
pkgrel=1
pkgdesc="Flutter Version Management: A simple CLI to manage Flutter SDK versions"
arch=('x86_64')
url="https://github.com/leoafarias/fvm"
license=('MIT')
depends=('bash' 'git' 'glibc' 'unzip')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
source=("${url}/releases/download/${pkgver}/fvm-${pkgver}-linux-x64.tar.gz"
        "${pkgname}.sh")
sha256sums=('39e8ebdb46b93de1c2aedbfa9aa75103ef16c9bf50048a928ef70abbb456f4f8'
            'eafcf25a0db7cc51f242fea20bd0d3e83060d5abfefb16146c7862b74e6c3893')

package() {
  install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
  install -Dm755 -t "${pkgdir}/opt/${pkgname}" fvm/src/dart
  install -Dm644 -t "${pkgdir}/opt/${pkgname}" fvm/src/fvm.snapshot
  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" fvm/src/LICENSE
}