blob: dc52eb75be04955ab5fc12a1f3390855ef83d1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# based on: https://gitlab.manjaro.org/manjaro-arm/packages/community/xf86-video-fbturbo-git/-/tree/master
# added: fix.patch (from: https://archlinuxarm.org/forum/viewtopic.php?f=15&t=15704#p68372)
# Maintainer: rernrern@gmail.com
pkgname=xf86-video-fbturbo-git
_gitname=xf86-video-fbturbo
pkgver=199.f9a6ed7
pkgrel=4.1
pkgdesc="X.org MALI video driver"
arch=('armv7h' 'aarch64')
url="https://github.com/ssvb/xf86-video-fbturbo"
license=('MIT')
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION>=24.0' 'git')
conflicts=('xorg-server<1.20' 'X-ABI-VIDEODRV_VERSION<24')
options=('!libtool')
provides=('xf86-video-fbturbo')
source=('git+https://github.com/ssvb/xf86-video-fbturbo'
'0001-Use-own-thunk-functions-instead-of-fbdevHW-Weak.patch'
'0002-GCC-8-fix.patch'
'0003-backStorage-fix.patch')
sha256sums=('SKIP'
'0af499820e3ade74ea6518caa96ec19f39150b1678ad6b33b2a3774b5a9f2c64'
'ccbd8f0d3fd9da180b2f5ab3be7284ec76e9dbf06762ec765e09a45c530d93bb'
'a8ca499527fc0da6177a7cca86badd021259e17b2d416bc7f7a6663821e90c12')
pkgver() {
cd "${SRCDEST}/${_gitname}"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
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
patch -p1 -i ../0003-backStorage-fix.patch
}
build() {
cd "${srcdir}/${_gitname}"
# 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}
./autogen.sh
./configure --prefix=/usr
make
}
package() {
depends=(xf86-input-evdev
xf86-video-fbdev
xf86-video-vesa
xinput_calibrator
xorg-server
xorg-xinit)
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}/"
}
|