summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91a457ef508f3cad656260e9dc8e3c539916f104 (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
# Maintainer: Jakob Nixdorf <flocke@shadowice.org>

pkgname=sterm-git
pkgver=r55.8768ce2
pkgrel=1
pkgdesc="A simple terminal emulator based on the VTE library"
arch=(x86_64)
url="https://github.com/flocke/sterm"
license=('MIT')
depends=('glib2' 'gtk3' 'pango' 'vte3')
makedepends=('git' 'cmake' 'pkg-config')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install="${pkgname}.install"
source=("sterm::git+https://github.com/flocke/sterm.git")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${pkgname%-git}"

  cmake \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
    .

	make
}

package() {
	cd "${srcdir}/${pkgname%-git}"

	make DESTDIR="${pkgdir}/" install
}