summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b89605192caebafc31bd9fa038293fdf9cbc8d6 (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
38
39
40
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: jklee <klee.jonathan@gmail.com>

set -u
pkgname='ngp'
pkgver='1.3'
pkgrel='2'
pkgdesc='ncurses grep tool'
arch=('i686' 'x86_64')
url="https://github.com/jonathanklee/${pkgname}"
license=('GPL')
depends=('libconfig' 'pcre' 'ncurses')
makedepends=('git' 'automake' 'autoconf' 'gcc' 'make')
_verwatch=("${url}/releases" "${url#*github.com}/archive/\(.*\)\.tar\.gz" 'l')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
#source=(http://github.com/jonathanklee/ngp/archive/${pkgver}.tar.gz)
sha256sums=('2b352aa69dc4fbaa8433af0b684120e96737ae7062422eb76d6e8c3ad3ac6bc7')

prepare() {
  set -u
  cd "${pkgname}-${pkgver}"
  ./autogen.sh
  ./configure --prefix='/usr'
  set +u
}

build() {
  set -u
  cd "${pkgname}-${pkgver}"
  make -s -j "$(nproc)"
  set +u
}

package() {
  set -u
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  set +u
}
set +u