summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3444900323b401b46a5efaf36158ea12a0060bb8 (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
# Maintainer: Darkgeem <darkgeem [at] pyrokinesis [dot] fr>

pkgname=cmatrix-neo-git
pkgver=0.6.1
pkgrel=1
url="https://github.com/st3w/neo"
pkgdesc="A ncmatrix fork with true colors and unicode support (${url})"
arch=('x86_64')
license=('GPL-3.0-or-later')
depends=()
makedepends=('git' 'autoconf' 'automake')
source=("$pkgname::git+https://github.com/st3w/neo.git")
md5sums=('SKIP')

pkgver() {
	cat "$srcdir/$pkgname/configure.ac" \
		| grep ^AC_INIT \
		| cut -d']' -f2 \
		| cut -d'[' -f2 \
		| tr -d '\n'
}

prepare() {
  cd "$srcdir/$pkgname"
  ./autogen.sh
}

build() {
  cd "$srcdir/$pkgname"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" install
}