summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8889fd91d7697ea7f918c6c292457247b8e218e4 (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
# Maintainer: sirspudd <sirspudd _at_ gmail.com>
# Contributor: Aetf <7437103@gmail.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: David Herrmann <dh.herrmann@googlemail.com>
pkgname=kmscon-macslow-git
_gitname=kmscon
pkgver=r1556
pkgrel=1
pkgdesc='Terminal emulator based on Kernel Mode Setting (KMS) (forked and patched version, additional changes by macslow)'
arch=('x86_64' 'armv7h' 'aarch64')
url='https://github.com/MacSlow/kmscon'
license=('MIT')
depends=(systemd libdrm mesa libgl pango libxkbcommon xkeyboard-config libtsm-patched)
makedepends=(libxslt docbook-xsl linux-api-headers git meson)
options=(!libtool)
provides=(kmscon)
conflicts=(kmscon)
source=("git+https://github.com/MacSlow/kmscon.git#branch=shader-background")
md5sums=('SKIP')

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

pkgver() {
    cd $srcdir/$_gitname
	echo "r$(git rev-list --count HEAD)"
}

build() {
  arch-meson "$srcdir/$_gitname" builddir/ -Dtests=false
  meson compile -C builddir/
}

package() {
  meson install -C builddir/ --destdir "$pkgdir"

  cd $srcdir/$_gitname
  install -m 644 -D -t "$pkgdir/usr/share/licenses/$pkgname" COPYING
}