blob: 793039326b72391c73f0604d73b405e19845f5e2 (
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
29
30
31
32
33
34
35
36
37
|
# Maintainer: Franco Bugnano <franco@bugnano.it>
pkgname=fcd
pkgver=1.0.0
pkgrel=1
pkgdesc="Text mode file manager combining the best features of ranger and mc"
arch=('x86_64')
url="https://github.com/bugnano/fcd"
license=('GPL-3.0-or-later')
makedepends=('cargo' 'asciidoctor')
optdepends=('archivefs: compressed archive support')
replaces=('rnr-fm')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bugnano/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('8f22cdc5cef571b20d7d4398e7b0e67bf2916c4269ace918f363971a795b66408c51301b845c48662c05cc53f13296350d99b71a8fd016be33f4150a5ee3bbfe')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
asciidoctor -b manpage doc/fcd.1.adoc
asciidoctor -b manpage doc/fcd-view.1.adoc
}
package() {
cd "$pkgname-$pkgver"
install -D -m755 "target/release/fcd" "$pkgdir/usr/bin/fcd"
install -D -m644 "doc/fcd.1" "$pkgdir/usr/share/man/man1/fcd.1"
install -D -m644 "doc/fcd-view.1" "$pkgdir/usr/share/man/man1/fcd-view.1"
install -D -m644 "fcd.sh" "$pkgdir/etc/profile.d/fcd.sh"
install -D -m644 "fcd.fish" "$pkgdir/etc/fish/functions/fcd.fish"
install -D -m644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
install -D -m644 "CHANGELOG.md" "$pkgdir/usr/share/doc/${pkgname}/CHANGELOG.md"
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
|