mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 23:49:03 +08:00
48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Maintainer: Drake Justice <djustice@chakraos.org>
|
|
|
|
source ../xorg.conf
|
|
|
|
pkgname=xf86-video-ati
|
|
pkgver=18.0.1
|
|
pkgrel=1
|
|
pkgdesc="X.org ati video driver"
|
|
arch=('x86_64')
|
|
url="https://xorg.freedesktop.org/"
|
|
license=('custom')
|
|
depends=('libsystemd' 'mesa')
|
|
makedepends=('xorg-server-devel' 'systemd' "X-ABI-VIDEODRV_VERSION=${X_ABI_VIDEODRV_VERSION}")
|
|
conflicts=('xorg-server<1.16.0' "X-ABI-VIDEODRV_VERSION<${X_ABI_VIDEODRV_MAJOR}" "X-ABI-VIDEODRV_VERSION>=$((X_ABI_VIDEODRV_MAJOR+1))")
|
|
groups=('xorg-drivers' 'xorg')
|
|
source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig})
|
|
sha512sums=('b468a78503a596bbf71a1b91b231ce1fa32908f619ff2dfe249352d046696a3641f2a9ff065e32545fff77100134b4b237591215e78ef885b6509d6b16112d14'
|
|
'SKIP')
|
|
validpgpkeys=('B09FAF35BE914521980951145A81AF8E6ADBB200') # Michel Daenzer <michel@daenzer.net>
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
# 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}
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgname}-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make "DESTDIR=${pkgdir}" install
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
}
|
|
|