summaryrefslogtreecommitdiff
path: root/community/kmscon/PKGBUILD
blob: 11cb9492de31a3a50d41ce1811322c9d2c2e323d (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
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: David Herrmann <dh.herrmann@googlemail.com>
pkgname=kmscon
pkgver=6
pkgrel=3
pkgdesc='Terminal emulator based on Kernel Mode Setting (KMS)'
arch=(i686 x86_64)
url='https://github.com/dvdhrm/kmscon'
license=('MIT')
depends=(systemd libdrm mesa libegl libgbm libgles pango libxkbcommon libpciaccess xkeyboard-config)
makedepends=('libxslt' 'docbook-xsl' 'linux-api-headers')
options=(!libtool)
source=(https://github.com/downloads/dvdhrm/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('12f6966cef8e846f31dbcad916a9f347')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure \
    --prefix=/usr \
    --enable-kmscon \
    --disable-wlterm \
    --enable-multi-seat \
    --enable-hotplug \
    --enable-pciaccess \
    --with-video=fbdev,dumb,drm \
    --with-fonts=pango,freetype2,8x16 \
    --with-sessions=dummy,terminal
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  mkdir -p "$pkgdir/usr/share/licenses/$pkgname" "$pkgdir/usr/lib/systemd/system"
  cp COPYING "$pkgdir/usr/share/licenses/$pkgname/"
  cp docs/kmscon{,@}.service "$pkgdir/usr/lib/systemd/system/"
}