aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 2dbf5a504dc273bac5db08c559dd45b8f28b10d8 (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
54
55
56
57
58
pkgbase=termite-git
pkgname=('termite-git' 'termite-terminfo-git')
pkgver=10.r2.g7b49576
pkgrel=1

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

depends=('atk' 'cairo' 'glibc' 'glib2' 'gcc-libs'
         'gtk3' 'pango' 'vte3-select-text-git>=0.38.0')
makedepends=('git' 'ncurses')

provides=('termite')
conflicts=('termite')

backup=('etc/xdg/termite/config')

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

md5sums=('SKIP'
         'SKIP'
         '8d4e4216cee58a1b0df223dde2216bf1')

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

prepare() {
	cd termite
	git submodule init
	git config submodule.util.url "$srcdir"/util
	git submodule update
	patch -Np1 -i "$srcdir"/reverse_url_search.patch
}

build() {
	cd termite
	make
}

package_termite-git() {
	cd termite
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -Dm644 config "$pkgdir"/etc/xdg/termite/config
}

package_termite-terminfo-git() {
	pkgdesc="terminfo for termite-git, a simple VTE-based terminal emulator"
	depends=()

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