summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7e8078138b01fe811b98bf14fd78a87708081ac (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
59
60
61
62
63
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Tony Houghton <h@realh.co.uk>
# Contributor: Thorsten Töpper <atsutane-tu@freethoughts.de>
# Contributor: Joan Rieu <toto_pirate@hotmail.fr>

pkgname=roxterm-git
pkgver=3.16.0
pkgrel=1
pkgdesc="Tabbed, VTE-based terminal emulator"
epoch=1
arch=('i686' 'x86_64')
url="https://github.com/realh/roxterm"
license=('GPL3')
depends=('dbus-glib' 'vte3')
makedepends=('cmake' 'git' 'docbook-xsl' 'xmlto' 'po4a' 'imagemagick' \
  'librsvg' 'itstool' 'sed' 'pkgconf')
provides=('roxterm')
conflicts=('roxterm')
source=("$pkgname::git+https://github.com/realh/roxterm.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  vs=`git describe`
  if echo "$vs" | grep -q "beta" ; then
    vs=`git describe --match 'beta-[0-9]*'`
    vl=`git describe --long --match 'beta-[0-9]*'`
    vs="${vs/beta-/}"
    vl="${vl/beta-/}"
  else
    vs=`git describe --match '[0-9]*'`
    vl=`git describe --long --match '[0-9]*'`
  fi
  [ "$vs" = "$vl" ] && vs=`echo "$vs" | sed -r 's,([^-]*-g),r\1,;s,-,.,g'`
  echo $vs
}

prepare() {
  cd $pkgname
  printf "$pkgver" > version
}

build() {
  cd $pkgname
  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build && cd build

  cmake .. \
    -DCMAKE_BUILD_TYPE='RelWithDebInfo' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
    -DCMAKE_SKIP_RPATH='TRUE' 
  make
}

package() {
  cd $pkgname
  make -C build DESTDIR="${pkgdir}" install
} 

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