summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6337ae04873cd49e02d0e85f0005d68a0c272451 (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: Michael Taboada <michael@2mb.solutions>
#Contributor: Andreas Radke <andyrtr@archlinux.org>
#Contributor: Storm Dragon <storm_dragon@linux-a11y.org>

_pkgname=xf86-video-dummy
pkgname=xf86-video-dummy-with-vt
pkgver=0.4.1
pkgrel=1
pkgdesc="X.org dummy video driver with an allocated vt"
arch=(aarch64 armv7h i686 x86_64)
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('glibc')
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'xorgproto')
conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
provides=("$_pkgname")
groups=('xorg-drivers')
source=(${url}/releases/individual/driver/${_pkgname}-${pkgver}.tar.xz{,.sig} dummy_driver.patch)
sha256sums=('351920a7fd0f759a3ac972a5999b3ffed46f07fb52a99f319bfb5b6a59d3dfaf'
            'SKIP'
            'f7504ae284aad2cb5244309c6ba241bad748ec1db2a5fd0986d744b59758d11b')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alan.coopersmith@oracle.com>

prepare() {
  cd "$srcdir/$_pkgname-$pkgver/src"
  patch -i $srcdir/dummy_driver.patch
}

build() {
  cd ${_pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${_pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}