2017-06-29 01:48:48 +00:00
|
|
|
# Meson Mali Xorg Driver
|
|
|
|
# Maintainer: Joseph Kogut <joseph.kogut@gmail.com>
|
|
|
|
|
|
|
|
buildarch=8
|
|
|
|
|
|
|
|
pkgname=xf86-video-armsoc-meson
|
|
|
|
pkgver=0.5
|
2022-01-01 03:12:53 +00:00
|
|
|
pkgrel=6
|
2017-06-29 01:48:48 +00:00
|
|
|
pkgdesc="X.org Mali video driver for Meson platforms"
|
|
|
|
arch=('aarch64')
|
|
|
|
license=('MIT')
|
|
|
|
url="https://github.com/jakogut/xf86-video-armsoc.git"
|
|
|
|
depends=('mali-utgard-meson-libgl-x11')
|
2022-01-01 03:12:53 +00:00
|
|
|
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'git')
|
|
|
|
conflicts=('xorg-server<1.21.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
|
2017-06-29 01:48:48 +00:00
|
|
|
source=($pkgname::"git+${url}"
|
2018-06-28 00:20:26 +00:00
|
|
|
0001-Initialize-XRandR-before-EnterVT.patch
|
|
|
|
99-mali-meson.conf)
|
2017-06-29 01:48:48 +00:00
|
|
|
sha256sums=('SKIP'
|
2018-06-28 00:20:26 +00:00
|
|
|
'a8abfb29efec9ba2c9a80a1c1fb68659c96b46b0b5a9a5f5cfbe691f0fdbf1fc'
|
2017-06-29 01:48:48 +00:00
|
|
|
'eca6ed5e20457d41a0fc9ac07034ee2682d5623cf6e566bf9df017d217540952')
|
|
|
|
|
2018-06-28 00:20:26 +00:00
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
git apply ../0001-Initialize-XRandR-before-EnterVT.patch
|
|
|
|
}
|
|
|
|
|
2017-06-29 01:48:48 +00:00
|
|
|
build() {
|
|
|
|
cd $pkgname
|
2018-05-27 14:32:58 +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}
|
|
|
|
|
2017-06-29 01:48:48 +00:00
|
|
|
LDFLAGS+=" -L/usr/lib/mali-egl"
|
|
|
|
./autogen.sh --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm755 ${srcdir}/$pkgname/src/.libs/armsoc_drv.so "${pkgdir}/usr/lib/xorg/modules/drivers/armsoc_drv.so"
|
|
|
|
install -Dm644 ${srcdir}/99-mali-meson.conf "${pkgdir}/etc/X11/xorg.conf.d/99-mali-meson.conf"
|
|
|
|
}
|