Go to file
2022-11-20 14:15:31 -08:00
distro Parse distro version ID instead of build ID 2022-11-20 21:43:58 +00:00
docs Run version function before anything else and set the version variable to its output 2022-11-20 14:15:31 -08:00
download Separate download.Get() function and add ~name parameter to git downloads 2022-10-03 15:38:38 -07:00
internal Add GPLv3 headers to all files 2022-11-05 16:11:01 -07:00
manager Remove epoch from reported version if it is zero 2022-11-14 14:59:16 -08:00
.gitignore Add goreleaser config 2022-09-28 16:47:37 -07:00
.goreleaser.yaml Fix maintainer spelling in goreleaser config 2022-11-14 14:29:01 -08:00
.woodpecker.yml Add woodpecker CI config 2022-11-18 08:18:02 +00:00
build.go Run version function before anything else and set the version variable to its output 2022-11-20 14:15:31 -08:00
config.go Add GPL headers 2022-09-26 12:28:21 -07:00
go.mod Remove replace directive and update nfpm 2022-10-15 11:44:46 -07:00
go.sum Remove replace directive and update nfpm 2022-10-15 11:44:46 -07:00
info.go Move reading build vars to separate function 2022-09-30 16:05:50 -07:00
install.go Don't pull repos if they've already been pulled in the same command 2022-10-03 15:51:46 -07:00
LICENSE Add GPLv3 License 2022-09-26 19:21:39 +00:00
list.go Add GPLv3 headers to all files 2022-11-05 16:11:01 -07:00
main.go Run gofmt 2022-09-28 15:23:09 -07:00
Makefile Add Makefile 2022-09-28 17:10:01 -07:00
README.md Switch badge to self-hosted CI 2022-11-18 08:20:46 +00:00
repo.go Show repo name when prompting to select package 2022-11-14 14:04:46 -08:00
upgrade.go Don't pull repos if they've already been pulled in the same command 2022-10-03 15:51:46 -07:00
version_test.go Add GPL headers 2022-09-26 12:28:21 -07:00
version.go Add GPL headers 2022-09-26 12:28:21 -07:00

LURE (Linux User REpository)

Go Report Card status-badge lure-bin AUR package

LURE is intended to bring the AUR to all distros. It is currently in an alpha state and may not be stable. It can download a repository, build packages in it using a bash script similar to PKGBUILD, and then install them using your system package manager.

LURE is written in pure Go and has zero dependencies after it's built. The only things LURE needs are a command for privilege elevation such as sudo, doas, etc. as well as a supported package manager. Currently, LURE supports apt, pacman, apk, dnf, yum, and zypper. If a supported package manager exists on your system, it will be detected and used automatically.


Installation

Distro packages and binary archives are provided at the latest Gitea release: https://gitea.arsenm.dev/Arsen6331/lure/releases/latest

LURE is also available on the AUR as lure-bin

Building from source

To build LURE from source, you'll need Go 1.18 or newer. Once Go is installed, clone this repo and run:

sudo make install

Why?

The AUR is an amazing feature, and it's one of the main reasons I use Arch on all my daily driver devices. It is really simple while providing really useful functionality. I feel such a solution shouldn't be stuck in only a single distro, so I made LURE.

Like the AUR, it uses simple bash build scripts, but it doesn't depend on bash being installed at all. It uses an embedded, pure Go implementation of bash instead. Similarly, it uses Git to download the repos and sources, but doesn't depend on Git being installed.

This means it's really easy to deploy LURE on any distro that it has support for and on any CPU architecture. It also supports and automatically detects many package managers, so it's not limited to just pacman.


Documentation

The documentation for LURE is in the docs directory in this repo.


Repositories

Unlike the AUR, LURE supports using multiple repos. Also unlike the AUR, LURE's repos are a single git repo containing all the build scripts. Inside each LURE repo, there should be a separate directory for each package containing a lure.sh script, which is a PKGBUILD-like build script for LURE. The default repository is hosted on Github: https://github.com/Arsen6331/lure-repo.


Dependencies

As mentioned before, LURE has zero dependencies after it's built. All functionality that could be pure Go is pure Go. Thanks to the following packages for making this possible:


Planned Features

  • Automated install script
  • Automated docker-based testing tool
  • Web interface for repos