core/xf86-video-fbdev/PKGBUILD

62 lines
1.6 KiB
Bash
Raw Normal View History

# Part of X.org group
# maintainer AlmAck almack@chakraos.org
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-fbdev
2018-05-23 12:15:30 +08:00
pkgver=0.4.4+13+g9af7f81
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="X.org framebuffer video driver"
2018-05-23 12:15:30 +08:00
arch=(x86_64)
2010-03-14 23:48:48 +08:00
license=('custom')
2018-05-23 12:15:30 +08:00
url="https://xorg.freedesktop.org/"
2010-03-14 23:48:48 +08:00
depends=('glibc')
2017-04-10 05:10:29 +08:00
makedepends=('xorg-server-devel' "X-ABI-VIDEODRV_VERSION=${X_ABI_VIDEODRV_VERSION}")
conflicts=('xorg-server<1.16' "X-ABI-VIDEODRV_VERSION<${X_ABI_VIDEODRV_MAJOR}" "X-ABI-VIDEODRV_VERSION>=$((X_ABI_VIDEODRV_MAJOR+1))")
groups=('xorg-drivers' 'xorg')
2018-05-23 12:15:30 +08:00
_commit=9af7f81534aa03fe01d88786805b00729ac321e9 # master
source=("git+https://anongit.freedesktop.org/git/xorg/driver/xf86-video-fbdev#commit=$_commit"
gcc8.diff)
sha256sums=('SKIP'
'050db537aae39b6deb1b2531b0064d62e2725f92b6c5c8ee6ade32e73cd3d5e8')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^xf86-video-fbdev-//;s/-/+/g'
}
prepare() {
cd $pkgname
patch -Np0 -i ../gcc8.diff
NOCONFIGURE=1 ./autogen.sh
}
2010-03-14 23:48:48 +08:00
build() {
2018-05-23 12:15:30 +08:00
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}
2010-10-05 05:03:14 +08:00
./configure --prefix=/usr
make
2012-05-30 07:50:33 +08:00
}
2018-05-23 12:15:30 +08:00
check() {
cd $pkgname
make check
}
2012-05-30 07:50:33 +08:00
package() {
2018-05-23 12:15:30 +08:00
cd $pkgname
2010-10-05 05:03:14 +08:00
make DESTDIR="${pkgdir}" install
2010-03-14 23:48:48 +08:00
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
2010-10-05 05:03:14 +08:00
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
2010-03-14 23:48:48 +08:00
}
2018-05-23 12:15:30 +08:00