summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b96fa06f02772412723df6dd4b8965763320da50 (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
# Maintainer: JinZhongjia <mail @ nvimer.org>

pkgname='zig-zvm'
pkgver='0.4.5'
pkgrel='2'
pkgdesc='Fast and simple zig version manager'
arch=('x86_64')
url='https://github.com/hendriknielaender/zvm'
license=('MIT')
makedepends=('zig' 'git')
provides=("zvm" "zig-zvm")
conflicts=('zig-zvm-bin' 'zvm' 'zig-zvm-git' 'zig')
source=("git+https://github.com/hendriknielaender/zvm.git#tag=v${pkgver}")
md5sums=('SKIP')

build() {
    cd "$srcdir/zvm"
    zig build release
}

package() {
    cd "$srcdir/zvm"
    install -Dm755 zig-out/$CARCH-linux-zvm "$pkgdir/usr/bin/zvm"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}