blob: 73b2e8ee91d6bb80f0781a02c5c5098cb0b5cdeb (
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
28
|
# Maintainer: Akatsuki Rui <akiirui@outlook.com>
_pkgname="dofi"
pkgname="dofi-manager"
pkgver=0.1.5
pkgrel=1
pkgdesc="A simple dotfile manager"
arch=("x86_64")
makedepends=("cargo" "git")
url="https://github.com/akiirui/dofi"
license=("MIT")
source=("$pkgname-$pkgver.tar.gz::https://github.com/akiirui/dofi/archive/v$pkgver.tar.gz")
b2sums=('9664e09bd7fd80ab23afd89c8f0b9324764868e040e3d8b3281aff0703d56a890afd8b41ebdac52556ccd1eb7b824a6186ed088897c3fce15880faedc29cde28')
build() {
cd "$srcdir/$_pkgname-$pkgver"
RUSTUP_TOOLCHAIN=stable \
cargo build --locked --release --target-dir target
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
install -Dm755 "target/release/dofi" "$pkgdir/usr/bin/dofi"
install -Dm644 "share/completions/fish" "${pkgdir}/usr/share/fish/vendor_completions.d/dofi.fish"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|