Initial 1.7.0

This commit is contained in:
ralismark 2019-01-28 12:18:34 +11:00
commit 271f7c6bbb
3 changed files with 61 additions and 0 deletions

18
.SRCINFO Normal file
View File

@ -0,0 +1,18 @@
pkgbase = authy
pkgdesc = Two-Factor Authentication from your PC. Converted from Windows electron version
pkgver = 1.7.0
pkgrel = 1
url = https://authy.com/
arch = x86_64
license = ISC
makedepends = npm
makedepends = p7zip
makedepends = asar
depends = electron
source = https://s3.amazonaws.com/authy-electron-repository-production/authy/stable/1.7.0/win32/x64/Authy%20Desktop%20Setup%201.7.0.exe
source = authy.desktop
md5sums = bd2182d0ae4c957efe5f2d244d4dfdb5
md5sums = dbe1a299080ecbd2c9727b9f951502db
pkgname = authy

35
PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
# Maintainer: Timmy Yao <timmy.yao+aur@gmail.com>
pkgname=authy
pkgver=1.7.0
pkgrel=1
pkgdesc="Two-Factor Authentication from your PC. Converted from Windows electron version"
arch=("x86_64")
url="https://authy.com/"
license=('ISC')
depends=('electron')
makedepends=('npm' 'p7zip' 'asar')
source=("https://s3.amazonaws.com/authy-electron-repository-production/authy/stable/${pkgver}/win32/x64/Authy%20Desktop%20Setup%20${pkgver}.exe"
"authy.desktop")
md5sums=('bd2182d0ae4c957efe5f2d244d4dfdb5'
'dbe1a299080ecbd2c9727b9f951502db')
build() {
cd "$srcdir"
7z x "Authy%20Desktop%20Setup%20${pkgver}.exe" -o"$pkgname-$pkgver" -y
cd "$pkgname-$pkgver"
7z x "authy-electron-$pkgver-full.nupkg" -y
mkdir app.asar
asar e lib/net45/resources/app.asar app.asar
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm644 -t "${pkgdir}"/usr/lib/"${pkgname}" \
lib/net45/resources/app.asar \
app.asar/img/logos/icon128.png
install -Dm644 "$srcdir"/authy.desktop -t "$pkgdir"/usr/share/applications
}

8
authy.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Version=1.7.0
Type=Application
Terminal=false
Exec=/usr/bin/electron --app /usr/lib/authy/app.asar
Name=Authy
Comment=Two-Factor Authentication
Icon=/usr/lib/authy/icon128.png