PKGBUILDs/alarm/xf86-video-armsoc-git/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

# ArmSoc (OMAP + Mali) FrameBuffer driver for Xorg from Linaro.
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Contributor: Erik Andersson <erik.h.andersson@gmail.com>
2013-02-19 17:43:17 +00:00
buildarch=4
pkgname=xf86-video-armsoc-git
pkgver=258.8bbdb2a
pkgrel=3
epoch=1
pkgdesc='X.org graphics driver for ARM graphics'
2013-02-19 17:43:17 +00:00
arch=('armv7h')
url="http://cgit.freedesktop.org/xorg/driver/xf86-video-armsoc"
2013-02-19 17:43:17 +00:00
license=('GPL2')
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=24.0' 'git')
conflicts=('xorg-server<1.20' 'X-ABI-VIDEODRV_VERSION<24' 'X-ABI-VIDEODRV_VERSION>=25' 'xf86-video-armsoc')
provides=(xf86-video-armsoc)
source=("$pkgname::git://anongit.freedesktop.org/xorg/driver/xf86-video-armsoc")
md5sums=('SKIP')
2013-02-19 17:43:17 +00:00
pkgver() {
cd $pkgname
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd $pkgname
# Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
# With them, module fail to load with undefined symbol.
# See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
export CFLAGS=${CFLAGS/-fno-plt}
export CXXFLAGS=${CXXFLAGS/-fno-plt}
export LDFLAGS=${LDFLAGS/,-z,now}
CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS"
./autogen.sh --prefix=/usr
2013-02-19 17:43:17 +00:00
make
}
package() {
cd $pkgname
2013-02-19 17:43:17 +00:00
make DESTDIR="${pkgdir}" install
2013-02-19 17:43:17 +00:00
}