diff options
author | numtostr | 2021-06-15 18:50:19 +0530 |
---|---|---|
committer | numtostr | 2021-06-15 18:50:19 +0530 |
commit | 90776f1a0e204ef0c40d3f499d5b58bfdfe38797 (patch) | |
tree | 131666d2b724a48ca4a32c92a19cc109d1407fe0 | |
download | aur-90776f1a0e204ef0c40d3f499d5b58bfdfe38797.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6177b0d8ac18 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = ky + pkgdesc = Simple and Secure password manager written in rust + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/numToStr/ky + arch = x86_64 + arch = aarch64 + arch = armv7 + license = MIT + depends = pacman<6 + depends = sudo + depends = git + depends = tar + provides = ky + conflicts = ky + source_x86_64 = https://github.com/numToStr/ky/releases/download/v0.0.1/ky-x86_64-unknown-linux-gnu.tar.gz + md5sums_x86_64 = SKIP + source_aarch64 = https://github.com/numToStr/ky/releases/download/v0.0.1/ky-aarch64-unknown-linux-gnu.tar.gz + md5sums_aarch64 = SKIP + source_armv7 = https://github.com/numToStr/ky/releases/download/v0.0.1/ky-armv7-unknown-linux-gnueabihf.tar.gz + md5sums_armv7 = SKIP + +pkgname = ky + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8682678050e1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: numToStr <sudo@vikasraj.dev> + +pkgname=ky +pkgver=0.0.1 +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}" +} |