2013-02-20 17:26:53 +00:00
|
|
|
# Maintainer: Erik Andersson <erik.h.andersson@gmail.com>
|
2013-02-19 17:43:17 +00:00
|
|
|
|
2013-02-20 17:26:53 +00:00
|
|
|
# ArmSoc (OMAP + Mali) FrameBuffer driver for Xorg from the Chromium OS git.
|
|
|
|
# Official upstream is at
|
|
|
|
# http://git.linaro.org/gitweb?p=arm/xorg/driver/xf86-video-armsoc.git;a=summary
|
2013-02-19 17:43:17 +00:00
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgname="xf86-video-armsoc-git"
|
2013-02-20 17:26:53 +00:00
|
|
|
pkgver=20130220
|
2013-02-19 17:43:17 +00:00
|
|
|
pkgrel=1
|
|
|
|
arch=('armv7h')
|
|
|
|
url="http://git.chromium.org/gitweb/?p=chromiumos/third_party/xf86-video-armsoc.git;a=summary"
|
|
|
|
license=('GPL2')
|
|
|
|
makedepends=('git' 'pkgconfig' 'xorg-server-devel' 'resourceproto' 'scrnsaverproto')
|
|
|
|
options=('!libtool')
|
|
|
|
replaces=('xf86-video-armsoc')
|
2013-02-20 20:35:34 +00:00
|
|
|
source=('compat_post_X_1.13.patch')
|
|
|
|
md5sums=('402a7285d410c58a746152bb0012a746')
|
2013-02-19 17:43:17 +00:00
|
|
|
|
|
|
|
_gitroot="http://git.chromium.org/git/chromiumos/third_party/xf86-video-armsoc.git"
|
|
|
|
_gitname="xf86-video-armsoc"
|
|
|
|
|
|
|
|
build() {
|
2013-02-20 17:26:53 +00:00
|
|
|
cd "$srcdir"
|
2013-02-20 20:35:34 +00:00
|
|
|
msg "Connecting to git server..."
|
2013-02-19 17:43:17 +00:00
|
|
|
|
2013-02-20 17:26:53 +00:00
|
|
|
if [[ -d "$_gitname" ]]; then
|
|
|
|
cd "$_gitname" && git pull origin
|
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
|
|
|
git clone "$_gitroot" "$_gitname"
|
2013-02-20 20:35:34 +00:00
|
|
|
cd "$_gitname"
|
2013-02-20 17:26:53 +00:00
|
|
|
fi
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
|
2013-02-20 20:35:34 +00:00
|
|
|
msg "Patching source..."
|
|
|
|
# X 1.13 compatibility from the Linaro upstream
|
|
|
|
patch -p1 -i ${srcdir}/compat_post_X_1.13.patch
|
|
|
|
|
2013-02-20 17:26:53 +00:00
|
|
|
msg "Starting build..."
|
2013-02-19 17:43:17 +00:00
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-02-20 17:26:53 +00:00
|
|
|
pkgdesc="armsoc framebuffer driver for X from chromium os git"
|
2013-02-19 17:43:17 +00:00
|
|
|
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|