blob: f6322d580c28b22d5cf0aacaa0622ab9f5f1b522 (
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
|
# Maintainer: xomachine <xomachiner@gmail.com>
pkgname=termit-git
pkgver=3.1.r16.g0ae773f
pkgrel=1
pkgdesc="Terminal emulator based on VTE library with Lua scripting"
conflicts=("termit")
arch=('i686' 'x86_64')
url="https://github.com/nonstop/termit"
license=('GPL')
depends=("lua" "vte3")
makedepends=("git" "cmake>=2.4")
source=("termit::git+https://github.com/nonstop/termit.git")
md5sums=('SKIP')
provides=("termit=$pkgver")
pkgver() {
_pkgname=$(echo $pkgname | sed -e 's/-git$//')
cd "$srcdir/$_pkgname"
( set -o pipefail
git describe --tags --long 2>/dev/null | sed -e 's/\([^-]*-g\)/r\1/;s/-/./g' -e 's/version\.//g' -e 's/^termit\.//g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
_pkgname=$(echo $pkgname | sed -e 's/-git$//')
cd "$srcdir/$_pkgname"
cmake -DCMAKE_C_FLAGS="-I/usr/include/vte-2.91" -DCMAKE_INSTALL_PREFIX=/usr .
make
}
package ()
{
_pkgname=$(echo $pkgname | sed -e 's/-git$//')
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|