core/xf86-video-intel/PKGBUILD

71 lines
2.1 KiB
Bash
Raw Normal View History

# Contributions of Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/xf86-video-intel
# Part of X.org group
2010-03-14 23:48:48 +08:00
2017-04-10 05:10:29 +08:00
source ../xorg.conf
2010-03-14 23:48:48 +08:00
pkgname=xf86-video-intel
2018-05-23 12:15:30 +08:00
_commit=e7bfc9065345085f767235eea8b148c356e5bd2b # master
pkgver=2.99.917+831+ge7bfc906
2015-11-17 05:11:40 +08:00
pkgrel=1
2017-08-20 09:29:47 +08:00
epoch=1
2018-05-23 12:15:30 +08:00
arch=(x86_64)
2017-08-20 09:29:47 +08:00
url="https://01.org/linuxgraphics"
2010-03-14 23:48:48 +08:00
license=('custom')
2014-06-29 05:35:11 +08:00
install=$pkgname.install
pkgdesc="X.org Intel i810/i830/i915/945G/G965+ video drivers"
2018-05-23 12:15:30 +08:00
depends=('mesa' 'libxvmc' 'pixman' 'xcb-util>=0.3.9' 'libsystemd')
2017-04-10 05:10:29 +08:00
makedepends=('xorg-server-devel' "X-ABI-VIDEODRV_VERSION=${X_ABI_VIDEODRV_VERSION}" 'libx11' 'libxrender'
2014-06-29 05:35:11 +08:00
# additional deps for intel-virtual-output
2017-08-20 09:29:47 +08:00
'libxrandr' 'libxinerama' 'libxcursor' 'libxtst' 'libxss'
# additional for git snapshot
2018-05-23 12:15:30 +08:00
'git') # 'meson' 'valgrind')
2014-06-29 05:35:11 +08:00
optdepends=('libxrandr: for intel-virtual-output'
'libxinerama: for intel-virtual-output'
'libxcursor: for intel-virtual-output'
2017-08-20 09:29:47 +08:00
'libxtst: for intel-virtual-output'
'libxss: for intel-virtual-output')
2017-04-10 05:10:29 +08:00
conflicts=("X-ABI-VIDEODRV_VERSION<${X_ABI_VIDEODRV_MAJOR}" "X-ABI-VIDEODRV_VERSION>=$((X_ABI_VIDEODRV_MAJOR+1))")
2011-05-01 18:50:24 +08:00
groups=('xorg-drivers' 'xorg')
2017-08-20 09:29:47 +08:00
source=("git+https://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel#commit=$_commit")
2015-11-17 05:11:40 +08:00
sha256sums=('SKIP')
pkgver() {
cd $pkgname
2017-08-20 09:29:47 +08:00
git describe --tags | sed 's/-/+/g'
2015-11-17 05:11:40 +08:00
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
2015-09-05 04:07:30 +08:00
}
2015-11-17 05:11:40 +08:00
2010-03-14 23:48:48 +08:00
build() {
2015-11-17 05:11:40 +08:00
cd $pkgname
2017-08-20 09:29:47 +08:00
# 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}
2017-04-10 05:10:29 +08:00
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--with-default-dri=3
2010-10-05 05:03:14 +08:00
make
2011-05-01 18:50:24 +08:00
}
2014-06-29 05:35:11 +08:00
check() {
2015-11-17 05:11:40 +08:00
cd $pkgname
2014-06-29 05:35:11 +08:00
make check
}
2011-05-01 18:50:24 +08:00
package() {
2015-11-17 05:11:40 +08:00
cd $pkgname
2014-06-29 05:35:11 +08:00
2010-10-05 05:03:14 +08:00
make DESTDIR="${pkgdir}" install
2014-06-29 05:35:11 +08:00
2010-03-14 23:48:48 +08:00
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
2010-03-14 23:48:48 +08:00
}