blob: 6da2537f49c06eaafceac64119ae60321c743c26 (
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
|
# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
pkgname=fileviewer-git
pkgver=r36.d484cad
pkgrel=2
pkgdesc="TUI file viewer in C for Unix systems"
arch=('x86_64')
url="https://github.com/velorek1/fw"
license=('MIT')
depends=('glibc')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" 'fw')
source=("$pkgname::git+$url")
sha256sums=('SKIP')
validpgpkeys=('4AEE18F83AFDEB23')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
make fw CFLAGS="${CFLAGS} -fsigned-char" LDFLAGS="${LDFLAGS}"
}
package() {
cd "$pkgname"
install -Dm 755 fw -t "$pkgdir/usr/bin/"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|