summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffb1ac6c268f6d84c7f13c55a221c85e01adf9c8 (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
# Maintainer: Jan-Erik Rediger <badboy@archlinux.us>

pkgname=dit-git
pkgver=0.5.r15.gd08a9e8
pkgrel=1
pkgdesc="A console text editor for Unix systems that you already know how to use"
arch=('i686' 'x86_64')
url="http://hisham.hm/dit"
license=('GPL')
depends=('lua52')
source=(git+https://github.com/hishamhm/dit)
sha1sums=('SKIP')

_gitname="dit"

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

build() {
  cd "$srcdir/$_gitname"
  ./autogen.sh
  ./configure --prefix=/usr --with-lua-suffix=5.2
  make
}

check() {
  cd "$srcdir/$_gitname"
  make check
}

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

# vim:set ts=2 sw=2 sts=2 et: