summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f41738774f7151a997f410dae6ecc37224b374ab (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
pkgname=noice-git
_pkgname=noice
pkgver=0.8.r3.g16f473f
pkgrel=1
pkgdesc='Small terminal file browser written in C'
arch=('i686' 'x86_64' 'armv6h')
url='http://git.2f30.org/noice/'
license=('BSD')
depends=('ncurses')
makedepends=('git')
source=('git://git.2f30.org/noice'
        'config.h')
md5sums=('SKIP' 'SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"
  cp "$srcdir/config.h" config.h
  make
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" PREFIX='/usr' MANPREFIX='/usr/share/man' install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}