summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37cd17af3d2e5a2779f73b04f24b55ee4e7e9ef7 (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
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: Mario St-Gelais <mario.stg@videotron_dot_ca>

_pkgname=nffm
pkgname=nffm-git
pkgver=r89.7ab56aa
pkgrel=1
pkgdesc="Not a Fancy File Manager, a mouseless ncurses file manager written in C."
arch=('i686' 'x86_64')
url="https://github.com/mariostg/nffm"
license=('GPL')
depends=('ncurses' 'libtar' 'gzip')
makedepends=('git')
provides=('nffm')
backup=('etc/nffm/color.conf' 'etc/nffm/extension.conf')
source=(git+https://github.com/mariostg/nffm)
md5sums=('SKIP')


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

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  make PREFIX="/usr" DESTDIR="$pkgdir" install
  
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  install -Dm644 {color,extension}.conf -t "$pkgdir/etc/nffm/"
}