summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ff63b40e663adab9f364b592d1b46aa9a5b2787 (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
pkgname=sheet-git
pkgver=r11.a4ffa4b
pkgrel=2
pkgdesc="sheet is a minimal(ish) tui frontend for feh/swaybg"
arch=(x86_64)
url="https://codeberg.org/unixextremist/sheet"
license=('WTFPL')
makedepends=(git)
depends=(ncurses)
optdepends=(
   'viu: for image preview'
   'feh: Needs either feh or swaybg to work'
   'swaybg: Needs either feh or swaybg to work'
)
source=("$pkgname::git+https://codeberg.org/unixextremist/sheet.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
  }

build() {
	cd "$pkgname"
	cc $CFLAGS $CPPFLAGS sheet.c -o sheet $LDFLAGS -lncurses
}


package() {
	cd "$pkgname"
	install -Dm755 sheet "$pkgdir/usr/bin/sheet"
}