2016-12-09 03:13:40 +00:00
|
|
|
# Maintainer: Kameron Larsen <kroylar@gmail.com>
|
|
|
|
# Based on xf86-video-fbturbo-git
|
|
|
|
|
|
|
|
buildarch=8
|
|
|
|
|
|
|
|
pkgname=xf86-video-fbturbo-odroid-c2-git
|
|
|
|
_gitname=xf86-video-fbturbo
|
|
|
|
pkgver=199.f9a6ed7
|
2018-05-27 14:34:41 +00:00
|
|
|
pkgrel=4
|
2016-12-09 03:13:40 +00:00
|
|
|
pkgdesc="X.org fbturbo video driver for odroid-c2"
|
|
|
|
arch=('aarch64')
|
|
|
|
url="https://github.com/tnmeyer/xf86-video-fbturbo"
|
|
|
|
license=('MIT')
|
2018-05-17 23:24:43 +00:00
|
|
|
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-fbturbo')
|
2016-12-09 03:13:40 +00:00
|
|
|
options=('!libtool')
|
|
|
|
provides=('xf86-video-fbturbo')
|
2018-05-17 23:24:43 +00:00
|
|
|
source=('git+https://github.com/tnmeyer/xf86-video-fbturbo'
|
|
|
|
'0001-Use-own-thunk-functions-instead-of-fbdevHW-Weak.patch'
|
|
|
|
'0002-GCC-8-fix.patch')
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'72a407d0ef8d8836974aed6ccfe88c6d'
|
|
|
|
'fd0c18383851ad756316aeb0a03a1310')
|
2016-12-09 03:13:40 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${SRCDEST}/${_gitname}"
|
|
|
|
echo $(git rev-list --count master).$(git rev-parse --short master)
|
|
|
|
}
|
|
|
|
|
2018-05-17 23:24:43 +00:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_gitname}"
|
|
|
|
patch -p1 -i ../0001-Use-own-thunk-functions-instead-of-fbdevHW-Weak.patch
|
|
|
|
patch -p1 -i ../0002-GCC-8-fix.patch
|
|
|
|
}
|
|
|
|
|
2016-12-09 03:13:40 +00:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_gitname}"
|
2018-05-27 14:34:41 +00: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}
|
|
|
|
|
2016-12-09 03:13:40 +00:00
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_gitname}"
|
|
|
|
mkdir -p "${pkgdir}/etc/X11/xorg.conf.d/"
|
|
|
|
cp "xorg.conf" "${pkgdir}/etc/X11/xorg.conf.d/99-fbturbo.conf"
|
|
|
|
make DESTDIR="${pkgdir}/" install
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
|
|
}
|