Open ghost opened 2 years ago
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:
The following are some issues I noticed with the Authme Settings under Arch Linux:
[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.
Before the feature request.
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