summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9041315eca45ece4b02591fd88d96ae94a2ae17d (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
44
45
46
47
48
49
50
# Maintainer: numToStr <sudo@vikasraj.dev>

pkgname=ky
pkgver=0.1.0
pkgrel=1
pkgdesc='Simple and Secure password manager written in rust'
arch=('x86_64' 'aarch64' 'armv7')
url=https://github.com/numToStr/ky
license=('MIT')
provides=($pkgname)
conflicts=($pkgname)

depends=(
  'pacman<6'
  'sudo'
  'git'
  'tar'
)

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

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

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

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

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