diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-08-06 22:38:05 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-08-06 22:38:05 +0100 |
| commit | 24036a1d0f2e45e82a4bf73a6e93a85fd347456e (patch) | |
| tree | 716c0420cc9e9ff6b155b3514a5634351b40591a | |
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | PKGBUILD | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73e070b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!PKGBUILD
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4daacf6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Leonardo Bishop <me@leonardobishop.net> +pkgname=dotfiles-installer-git +pkgdesc="Dotfiles installer" +pkgver=0.2.0.r0.gde9c68b +pkgrel=1 +makedepends=('rust' 'cargo') +arch=('x86_64') +url="https://git.leonardobishop.net/dotfiles-installer/" +license=('GPL-3.0-or-later') +conflicts=('dotfiles-installer') +provides=("dotfiles-installer=${pkgver}") +source=(dotfiles-installer::git+https://git.leonardobishop.net/dotfiles-installer) +sha256sums=('SKIP') + +pkgver() { + cd "dotfiles-installer" + git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "dotfiles-installer" + cargo build --release +} + +package() { + install -Dm755 "$srcdir/dotfiles-installer/target/release/dotfiles-installer" "$pkgdir/usr/bin/dotfiles-installer" +} |
