Package Details: jfa-go-git r1672.7223981-1

Git Clone URL: https://aur.archlinux.org/jfa-go-git.git (read-only, click to copy)
Package Base: jfa-go-git
Description: A web app for managing users on Jellyfin
Upstream URL: https://github.com/hrfee/jfa-go
Keywords: go jellyfin jellyfin-accounts
Licenses: MIT
Conflicts: jfa-go
Provides: jfa-go
Submitter: hrfee
Maintainer: hrfee
Last Packager: hrfee
Votes: 1
Popularity: 0.000000
First Submitted: 2020-09-03 21:11 (UTC)
Last Updated: 2023-12-26 15:25 (UTC)

Required by (0)

Sources (1)

Latest Comments

raku-cat commented on 2025-05-15 18:00 (UTC) (edited on 2025-05-15 19:04 (UTC) by raku-cat)

Edit: Got it to work all in one shot based on how goreleaser does it:

# Maintainer: Harvey Tindall <hrfee@protonmail.ch>
pkgname=jfa-go-git
_pkgname=jfa-go
pkgver=r1896.07d02f8
pkgrel=1
pkgdesc="A web app for managing users on Jellyfin"
arch=('x86_64' 'aarch64' 'armv6h' 'armv7h')
url="https://github.com/hrfee/jfa-go"
license=('MIT')
makedepends=('go>=1.18' 'python>=3.6.0-1' 'nodejs' 'npm' 'git' 'esbuild')
checkdepends=()
optdepends=()
provides=("jfa-go")
conflicts=("jfa-go")
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::git+https://github.com/hrfee/jfa-go.git")
noextract=()
md5sums=(SKIP)
validpgpkeys=()
pkgver() {
    cd $pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
    cd ${pkgname}
    npm i
    make precompile INTERNAL=off
    go install github.com/swaggo/swag/cmd/swag@latest
}
build() {
    cd ${pkgname}
    export GOPATH="$(go env GOPATH)"
    "${GOPATH}"/bin/swag init -g main.go
    make INTERNAL=off BUILTBY="makepkg (aur)"
}
package() {
    cd ${pkgname}
    install -d "$pkgdir"/opt
    make install DESTDIR="$pkgdir"/opt
    mkdir -p "$pkgdir"/usr/bin
    chown -R root "$pkgdir"/opt/$_pkgname/
    chmod 755 "$pkgdir"/opt/$_pkgname/$_pkgname
    ln -sf /opt/$_pkgname/$_pkgname "$pkgdir"/usr/bin/$_pkgname
    install -Dm644 static/fonts/OFL.txt -t "$pkgdir"/usr/share/licenses/$_pkgname
    install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$_pkgname
}

raku-cat commented on 2025-05-15 17:38 (UTC)

This package does not build out of the box, gives the following error:

==> Making package: jfa-go-git r1672.7223981-1 (Thu 15 May 2025 12:34:24 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating jfa-go-git git repo...
==> Validating source files with md5sums...
    jfa-go-git ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of jfa-go-git git repo...
Cloning into 'jfa-go-git'...
done.
==> Starting prepare()...
Generating config-default.ini
go run scripts/ini/main.go -in config/config-base.yaml -out build/data/config-default.ini
panic: open build/data/config-default.ini: no such file or directory
goroutine 1 [running]:
main.generateIni({0x7ffc5051bb38?, 0xc000132010?}, {0x7ffc5051bb55, 0x1d})
    /home/glizzy/aur/jfa-go-git/src/jfa-go-git/scripts/ini/main.go:68 +0x1fc
main.main()
    /home/glizzy/aur/jfa-go-git/src/jfa-go-git/scripts/ini/main.go:124 +0x1c6
exit status 2
make: *** [Makefile:119: build/data/config-default.ini] Error 1
==> ERROR: A failure occurred in prepare().
    Aborting...

Also seems to need an extra dep of swag from the aur, though I don't understand enough of the build process to know if that's accurate, I'm aware theres multiple projects under the name "swag".