core/xf86-video-ati/PKGBUILD

48 lines
1.5 KiB
Bash
Raw Normal View History

2014-06-29 05:31:42 +08:00
# Maintainer: Drake Justice <djustice@chakraos.org>
2010-03-14 23:48:48 +08:00
2017-04-10 05:10:29 +08:00
source ../xorg.conf
2010-03-14 23:48:48 +08:00
pkgname=xf86-video-ati
2018-05-23 12:15:30 +08:00
pkgver=18.0.1
2015-11-17 05:22:34 +08:00
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="X.org ati video driver"
arch=('x86_64')
2018-05-23 12:15:30 +08:00
url="https://xorg.freedesktop.org/"
2010-03-14 23:48:48 +08:00
license=('custom')
2018-05-23 12:15:30 +08:00
depends=('libsystemd' 'mesa')
makedepends=('xorg-server-devel' 'systemd' "X-ABI-VIDEODRV_VERSION=${X_ABI_VIDEODRV_VERSION}")
2017-04-10 05:10:29 +08:00
conflicts=('xorg-server<1.16.0' "X-ABI-VIDEODRV_VERSION<${X_ABI_VIDEODRV_MAJOR}" "X-ABI-VIDEODRV_VERSION>=$((X_ABI_VIDEODRV_MAJOR+1))")
2014-06-29 05:31:42 +08:00
groups=('xorg-drivers' 'xorg')
2018-05-23 12:15:30 +08:00
source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig})
sha512sums=('b468a78503a596bbf71a1b91b231ce1fa32908f619ff2dfe249352d046696a3641f2a9ff065e32545fff77100134b4b237591215e78ef885b6509d6b16112d14'
'SKIP')
validpgpkeys=('B09FAF35BE914521980951145A81AF8E6ADBB200') # Michel Daenzer <michel@daenzer.net>
2010-03-14 23:48:48 +08:00
2014-06-29 05:31:42 +08:00
build() {
cd ${pkgname}-${pkgver}
2018-05-23 12:15:30 +08: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}
./configure --prefix=/usr
2014-06-29 05:31:42 +08:00
make
2011-01-09 09:42:05 +08:00
}
2018-05-23 12:15:30 +08:00
check() {
cd ${pkgname}-${pkgver}
make check
}
package() {
2014-06-29 05:31:42 +08:00
cd ${pkgname}-${pkgver}
make "DESTDIR=${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
2013-07-24 09:05:51 +08:00
}
2014-06-29 05:31:42 +08:00