summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acee221b97617fd7a7abacba044ef2ccdb42d1e3 (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
48
49
50
51
52
53
pkgname=(termite-git termite-terminfo-git)
pkgver=12.r20.g37309fd
pkgrel=1

pkgdesc="A simple VTE-based terminal"
url="https://github.com/thestinger/termite/"
arch=('i686' 'x86_64')
license=('LGPL')

makedepends=('git' 'vte3-ng' 'ncurses')

source=(git://github.com/thestinger/termite
        git+https://github.com/thestinger/util)

md5sums=(SKIP SKIP)

pkgver() {
  cd termite
  git describe --long --always | sed 's/^v//; s/-/.r/; s/-/./'
}

prepare() {
  cd termite
  git submodule init
  git config submodule.util.url "$srcdir"/util
  git submodule update
}

build() {
  cd termite
  make
}

package_termite-git() {
  pkgdesc="A simple VTE-based terminal"
  depends=('vte3-ng' 'termite-terminfo-git')
  conflicts=('termite')
  backup=(etc/xdg/termite/config)

  cd termite
  make PREFIX=/usr DESTDIR="$pkgdir" install
  rm -rf "$pkgdir"/usr/share/terminfo
  install -Dm644 config "$pkgdir"/etc/xdg/termite/config
}

package_termite-terminfo-git() {
  pkgdesc='Terminfo for Termite, a simple VTE-based terminal'
  conflicts=('termite-terminfo')

  cd termite
  install -d "$pkgdir"/usr/share/terminfo
  tic -x termite.terminfo -o "$pkgdir"/usr/share/terminfo
}