summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c522ebd4cd487ecae964aaa209d3ad69f2f0ea2 (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
41
42
43
44
45
46
47
# Contributor: ledti <antegist at gmail.com>
# Maintainer: Stefan Husmann <Stefan-Husmann@t-online.de>

pkgname=evilvte-git
_pkgname=evilvte
pkgver=150.8dfa41e
pkgrel=6
pkgdesc='VTE based, highly customizable terminal emulator.'
arch=('i686' 'x86_64')
url="http://www.calno.com/evilvte/"
license=('GPL2')
depends=('hicolor-icon-theme' 'vte-legacy')
makedepends=('git' 'pkg-config')
provides=('evilvte')
conflicts=('evilvte')
source=("$_pkgname::git://github.com/caleb-/evilvte.git#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

prepare() {
  # copy config.h to startdir to ease configuration:
  cd "$startdir"
  if [[ -e config.h ]]; then
    cp -f config.h "$srcdir/$_pkgname/src/"
    echo "To reset your configuration, remove $startdir/config.h"
  else
    cp "$srcdir/$_pkgname/src/config.h" config.h
    echo "Edit $startdir/config.h and recompile to change your settings."
  fi
 }

build(){
LANG=C
  cd "$srcdir/$_pkgname"
  ./configure --prefix=/usr --with-gtk=2.0 
  make
}

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