summaryrefslogtreecommitdiff
path: root/pcr/xf86-video-armsoc-git/PKGBUILD
blob: 71fe30daa60ff8c15188cf7b52f2923a78f7d0bb (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
# ArmSoc (OMAP + Mali)  FrameBuffer driver for Xorg from Linaro.
# Maintainer (Arch ARM): Kevin Mihelich <kevin@archlinuxarm.org>
# Contributor (Arch ARM): Erik Andersson <erik.h.andersson@gmail.com>
# Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>

buildarch=4

pkgname=xf86-video-armsoc-git
_commit=8ca8513880697f9a34d4006c43342b830bdd1ff2
pkgver=243.8ca8513
pkgrel=2
epoch=1
pkgdesc='X.org graphics driver for ARM graphics'
arch=('armv7h')
url="http://cgit.freedesktop.org/xorg/driver/xf86-video-armsoc"
license=('GPL2')
makedepends=('git' 'pkgconfig' 'xorg-server-devel' 'resourceproto' 'scrnsaverproto')
options=('!libtool')
conflicts=(xf86-video-armsoc)
provides=(xf86-video-armsoc)
source=("$pkgname::git://anongit.freedesktop.org/xorg/driver/xf86-video-armsoc#commit=${_commit}"
        '0001-drmmode_display-include-sys-stat.h.patch')
md5sums=('SKIP'
         '89c59460f599996b0ac5669c0762567e')

pkgver() {
  cd $pkgname
  echo $(git rev-list --count makepkg).$(git rev-parse --short makepkg)
}

prepare() {
  cd $pkgname
  git apply ../0001-drmmode_display-include-sys-stat.h.patch
}

build() {
  cd $pkgname

  CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS"
  ./autogen.sh --prefix=/usr --with-drmmode=exynos
  make
}

package() {
  cd $pkgname

  make DESTDIR="${pkgdir}" install
}