Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an AUR for Arch Linux #227

Open
1 task done
ghost opened this issue Aug 17, 2022 · 1 comment
Open
1 task done

Add an AUR for Arch Linux #227

ghost opened this issue Aug 17, 2022 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Aug 17, 2022

Before the feature request.

  • I have searched the Github Issues for a feature request that matches the one I want to file, without success.

Your feature request related to the problem

Add an AUR package to download in arch linux based systems.

Describe the solution you'd like or alternatives you've considered


Additional information

No response

@ghost ghost added the Type: Feature label Aug 17, 2022
@ghost ghost assigned Levminer Aug 17, 2022
@Levminer Levminer added this to Authme Aug 18, 2022
@Levminer Levminer moved this to To do in Authme Aug 18, 2022
@Levminer Levminer added this to the Authme 4.0.0 milestone Aug 18, 2022
@Levminer Levminer removed this from Authme Nov 1, 2022
@Levminer Levminer removed this from the Authme 4.0.0 milestone Nov 1, 2022
@bsd-source
Copy link

bsd-source commented Jan 8, 2024

I created a PKGBUILD file for Arch Linux to build a valid Arch Linux Package. I'm sure it could use some refinements before someone submits it to the Arch Aur package repository.

# Maintainer: Your Name <youremail@domain.com>
pkgname=authme
pkgver=4.2.1
pkgrel=1
pkgdesc="Simple cross-platform two-factor (2FA) authenticator app for desktop."
arch=(x86_64)
url="https://github.com/Levminer/authme"
license=('GPL3')
depends=('webkit2gtk')
makedepends=('git' 'rust' 'cargo-tauri' 'npm' 'hicolor-icon-theme')
source=("https://github.com/Levminer/$pkgname/archive/$pkgver.tar.gz")
md5sums=('SKIP')

build() {
	cd "$pkgname-$pkgver"
	npm i
	# disable automatic update on linux. avoids tauri signing key error.
	sed  -i '0,/\"active\": true/! {0,/\"active\": true/ s/\"active\": true/\"active\": false/}' core/tauri.conf.json
	sudo npm run build
}

package() {
	# copy the files we need into the package directory prior to building the package
	cp -r $pkgname-$pkgver/core/target/release/bundle/deb/authme_4.2.1_amd64/data/usr $pkgdir/
}

I attached the PKGBUILD file. I had to rename it to PKGBUILD.txt so github would accept it as a valid attachement.
PKGBUILD.txt

Installing the created package will result in the following valid install:

  1. /usr/bin/authme
  2. /usr/share/icons/hicolor/128x128/apps/authme.png
  3. /usr/share/icons/hicolor/32x32/apps/authme.png
  4. /usr/share/icons/hicolor/256x256@2/apps/authme.png
  5. /usr/share/applications/authme.desktop

The following are some issues I noticed with the Authme Settings under Arch Linux:

  • Toggling Launch on Startup off then on will cause Authme to crash. This setting should probably be disabled until implemented in Linux.
  • Window Capture option does not stay toggled to on if selected (not sure what this even does). I could take a screenshot of the Authme Window in Linux.
  • Shortcut settings work. Although I did notice the following log file error if Edit, Reset of Delete are selected in the GUI.

[AUTHME ERROR] (2024. 01. 08. 10:29:10) Unknown runtime error occurred: Unknown error

I hope the information I provided could be useful to someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants