mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:54:37 +08:00
71 lines
2.1 KiB
Bash
71 lines
2.1 KiB
Bash
# Contributions of Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/xf86-video-intel
|
|
# Part of X.org group
|
|
|
|
source ../xorg.conf
|
|
|
|
pkgname=xf86-video-intel
|
|
_commit=e7bfc9065345085f767235eea8b148c356e5bd2b # master
|
|
pkgver=2.99.917+831+ge7bfc906
|
|
pkgrel=1
|
|
epoch=1
|
|
arch=(x86_64)
|
|
url="https://01.org/linuxgraphics"
|
|
license=('custom')
|
|
install=$pkgname.install
|
|
pkgdesc="X.org Intel i810/i830/i915/945G/G965+ video drivers"
|
|
depends=('mesa' 'libxvmc' 'pixman' 'xcb-util>=0.3.9' 'libsystemd')
|
|
makedepends=('xorg-server-devel' "X-ABI-VIDEODRV_VERSION=${X_ABI_VIDEODRV_VERSION}" 'libx11' 'libxrender'
|
|
# additional deps for intel-virtual-output
|
|
'libxrandr' 'libxinerama' 'libxcursor' 'libxtst' 'libxss'
|
|
# additional for git snapshot
|
|
'git') # 'meson' 'valgrind')
|
|
optdepends=('libxrandr: for intel-virtual-output'
|
|
'libxinerama: for intel-virtual-output'
|
|
'libxcursor: for intel-virtual-output'
|
|
'libxtst: for intel-virtual-output'
|
|
'libxss: for intel-virtual-output')
|
|
conflicts=("X-ABI-VIDEODRV_VERSION<${X_ABI_VIDEODRV_MAJOR}" "X-ABI-VIDEODRV_VERSION>=$((X_ABI_VIDEODRV_MAJOR+1))")
|
|
groups=('xorg-drivers' 'xorg')
|
|
source=("git+https://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
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}
|
|
|
|
./configure --prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--with-default-dri=3
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
}
|