summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64aa3b953e811b04127f7de6098d408b1900f613 (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
36
37
38
39
40
41
42
43
# Maintainer: numToStr <sudo@vikasraj.dev>

pkgname=snm
pkgver=0.8.0
pkgrel=1
pkgdesc="Smol and simple node version manager"
arch=('x86_64' 'aarch64' 'armv7')
url=https://github.com/numToStr/snm/
license=('GPL')
provides=($pkgname)
conflicts=($pkgname)

source_x86_64=(
    "$url/releases/download/v$pkgver/$pkgname-v$pkgver-x86_64-unknown-linux-gnu.tar.gz"
)
md5sums_x86_64=(SKIP)

source_armv7=(
    "$url/releases/download/v$pkgver/$pkgname-v$pkgver-armv7-unknown-linux-gnueabihf.tar.gz"
)
md5sums_armv7=(SKIP)

source_aarch64=(
    "$url/releases/download/v$pkgver/$pkgname-v$pkgver-aarch64-unknown-linux-gnu.tar.gz"
)
md5sums_aarch64=(SKIP)

package() {
    _output=""
    case $CARCH in
        x86_64 )
            _output="$pkgname-v$pkgver-x86_64-unknown-linux-gnu"
            ;;
        armv7 )
            _output="$pkgname-v$pkgver-armv7-unknown-linux-gnueabihf"
            ;;
        aarch64 )
            _output="$pkgname-v$pkgver-aarch64-unknown-linux-gnu"
            ;;
    esac

	install -Dm755 "${srcdir}/${_output}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}