summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c22f21174aa96bbdb1db45c33cbb1b2c6cfab99 (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
# Maintainer: Aetf <aetf at unlimitedcodeworks dor xyz>
pkgname=libtsm-patched-git
_gitname=libtsm
pkgver=4.0.2.r4.g06d52d1
pkgrel=1
pkgdesc="Terminal-emulator State Machine. Patched flavor (using patches from http://github.com/Aetf/libtsm)"
arch=('x86_64' 'armv7h' 'aarch64')
url="http://www.freedesktop.org/wiki/Software/kmscon/$_gitname"
license=('MIT')
depends=(glibc)
makedepends=('cmake' 'git' 'libxkbcommon')
provides=('libtsm-patched' 'libtsm')
conflicts=('libtsm' 'libtsm-patched')
options=(!libtool)
source=('git+https://github.com/Aetf/libtsm.git')
sha256sums=('SKIP')

pkgver() {
  cd "$_gitname"
  git describe --long | sed -r "s/^$_gitname-//;s/^v//;s/([^-]*-g)/r\\1/;s/-/./g"
}

prepare() {
  cd "$srcdir/$_gitname"

  mkdir -p build && cd build

  cmake \
    -DBUILD_TESTING=OFF \
    -DBUILD_GTKTSM=OFF \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    ..
}

build() {
  cd "$srcdir/$_gitname/build"
  make
}

package() {
  cd "$srcdir/$_gitname"
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_gitname/COPYING"

  cd build
  make DESTDIR="$pkgdir/" install
}

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