mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# ODROID-C1 Mali Xorg Driver
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=4
|
|
|
|
pkgname=xf86-video-odroid-c1
|
|
pkgver=0.5
|
|
pkgrel=10
|
|
pkgdesc="X.org Mali video driver for ODROID-C1"
|
|
arch=(armv7h)
|
|
license=('custom')
|
|
url="http://www.hardkernel.com/"
|
|
depends=('odroid-c1-libgl-x11')
|
|
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'git' 'odroid-c1-libgl-headers')
|
|
conflicts=('xorg-server<1.21.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
|
|
source=("git+https://github.com/mdrjr/c1_mali_ddx.git")
|
|
sha256sums=('SKIP')
|
|
|
|
build() {
|
|
cd c1_mali_ddx
|
|
|
|
# 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}
|
|
|
|
LDFLAGS+=" -L/usr/lib/mali-egl"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd c1_mali_ddx
|
|
install -Dm755 src/.libs/mali_drv.so "${pkgdir}/usr/lib/xorg/modules/drivers/mali_drv.so"
|
|
install -Dm644 src/xorg.conf "${pkgdir}/etc/X11/xorg.conf.d/99-mali-c1.conf"
|
|
}
|