blob: 4daacf67bf8e64a4629d2170a4be9013f06fe87f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"
}
|