Add an AUR for Arch Linux
Before the feature request.
- [X] 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
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 <[email protected]>
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:
- /usr/bin/authme
- /usr/share/icons/hicolor/128x128/apps/authme.png
- /usr/share/icons/hicolor/32x32/apps/authme.png
- /usr/share/icons/hicolor/256x256@2/apps/authme.png
- /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.