diff options
author | Yurii Kolesnykov | 2022-02-12 06:59:55 +0200 |
---|---|---|
committer | Yurii Kolesnykov | 2022-02-12 06:59:55 +0200 |
commit | e9587993f194a63936293d5b62b9a499ac982718 (patch) | |
tree | b55639c549711e25a953822f9dd28b9b36a8d2e8 | |
parent | bbe0852d5b289483836bd86e6ba91657e43a868b (diff) | |
download | aur-e9587993f194a63936293d5b62b9a499ac982718.tar.gz |
sync with extra/xf86-video-amdgpu
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 23 |
3 files changed, 13 insertions, 14 deletions
@@ -1,6 +1,6 @@ pkgbase = xf86-video-amdgpu-git pkgdesc = X.org amdgpu video driver (git version) - pkgver = 19.1.0.1 + pkgver = 21.0.0.r1.g6936552 pkgrel = 1 url = https://xorg.freedesktop.org/ arch = x86_64 @@ -19,4 +19,3 @@ pkgbase = xf86-video-amdgpu-git sha256sums = SKIP pkgname = xf86-video-amdgpu-git - diff --git a/.gitignore b/.gitignore index 381be7ac0448..0c5a7d5305b6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ xf86-video-amdgpu-git src pkg *.pkg.* +*.log @@ -1,9 +1,10 @@ # Maintainer: Yurii Kolesnykov <root@yurikoles.com> -# Credit: Laurent Carlier <lordheavym@gmail.com> +# based on extra/xf86-video-amdgpu by: +# Laurent Carlier <lordheavym@gmail.com> pkgname=xf86-video-amdgpu-git _pkgname=xf86-video-amdgpu -pkgver=19.1.0.1 +pkgver=21.0.0.r1.g6936552 pkgrel=1 pkgdesc="X.org amdgpu video driver (git version)" arch=('x86_64') @@ -16,18 +17,14 @@ provides=('xf86-video-amdgpu') groups=('xorg-drivers') source=("${pkgname}::git+https://gitlab.freedesktop.org/xorg/driver/${_pkgname}.git") sha256sums=('SKIP') -pkgver() { - local version count - - cd "${pkgname}" - version="$(git describe --abbrev=0 --tags)" - count="$(git rev-list --count ${version}..)" - printf '%s.%s' "${version#v}" "${count}"|sed 's/^xf86-video-amdgpu-//' +pkgver() { + cd ${pkgname} + git describe --long --tags | sed 's/^xf86.video.amdgpu.//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "${pkgname}" + cd ${pkgname} # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf # With them, module fail to load with undefined symbol. @@ -36,18 +33,20 @@ build() { export CXXFLAGS=${CXXFLAGS/-fno-plt} export LDFLAGS=${LDFLAGS/,-z,now} + #CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common + ./autogen.sh --prefix=/usr \ --enable-glamor make } check() { - cd "${pkgname}" + cd ${pkgname} make check } package() { - cd "${pkgname}" + cd ${pkgname} make "DESTDIR=${pkgdir}" install install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" |